pub enum DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy {
Noeviction,
AllkeysLru,
AllkeysRandom,
VolatileLru,
VolatileRandom,
VolatileTtl,
}Expand description
A string specifying the desired eviction policy for the Caching cluster.
noeviction: Don’t evict any data, returns error when memory limit is reached.allkeys-lru:Evict any key, least recently used (LRU) first.allkeys-random: Evict keys in a random order.volatile-lru: Evict keys with expiration only, least recently used (LRU) first.volatile-random: Evict keys with expiration only in a random order.volatile-ttl: Evict keys with expiration only, shortest time-to-live (TTL) first.
JSON schema
{
"description": "A string specifying the desired eviction policy for the Caching cluster.\n\n- `noeviction`: Don't evict any data, returns error when memory limit is reached.\n- `allkeys-lru:` Evict any key, least recently used (LRU) first.\n- `allkeys-random`: Evict keys in a random order.\n- `volatile-lru`: Evict keys with expiration only, least recently used (LRU) first.\n- `volatile-random`: Evict keys with expiration only in a random order.\n- `volatile-ttl`: Evict keys with expiration only, shortest time-to-live (TTL) first.",
"examples": [
"allkeys-lru"
],
"type": "string",
"enum": [
"noeviction",
"allkeys-lru",
"allkeys-random",
"volatile-lru",
"volatile-random",
"volatile-ttl"
]
}Variants§
Trait Implementations§
Source§impl Clone for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl Clone for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§fn clone(&self) -> DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
fn clone(&self) -> DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§impl<'de> Deserialize<'de> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl<'de> Deserialize<'de> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§impl From<&DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl From<&DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§fn from(
value: &DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy,
) -> Self
fn from( value: &DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy, ) -> Self
Converts to this type from the input type.
Source§impl Ord for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl Ord for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§fn cmp(
&self,
other: &DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy,
) -> Ordering
fn cmp( &self, other: &DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy, ) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl PartialOrd for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§fn partial_cmp(
&self,
other: &DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy,
) -> Option<Ordering>
fn partial_cmp( &self, other: &DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy, ) -> Option<Ordering>
impl StructuralPartialEq for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§impl TryFrom<&String> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl TryFrom<&String> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl TryFrom<&str> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl TryFrom<String> for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl RefUnwindSafe for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl Send for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl Sync for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl Unpin for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl UnsafeUnpin for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
impl UnwindSafe for DatabasesGetConfigResponseConfigSubtype2RedisMaxmemoryPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.