Module ncache.client.enum.ExpirationType

Expand source code
from enum import Enum


class ExpirationType(Enum):
    """
    The type of expiration to be used while expiring items in cache. The value of this type varies from item to item in
    cache.
    """
    NONE = 1
    """
    Indicates that no expiration is to take place.
    """
    SLIDING = 2
    """
    Indicates that item expiration in cache is to follow idle expiration.
    """
    ABSOLUTE = 3
    """
    Indicates that item expiration in cache is to follow fixed expiration.
    """
    DEFAULT_ABSOLUTE = 4
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from
    'DefaultAbsolute' field in NCache Manager.
    """
    DEFAULT_ABSOLUTE_LONGER = 5
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from
    'DefaultAbsoluteLonger' field in NCache Manager.
    """
    DEFAULT_SLIDING = 6
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from 'DefaultSliding'
    field in NCache Manager.
    """
    DEFAULT_SLIDING_LONGER = 7
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from
    'DefaultSlidingLonger' field in NCache Manager.
    """

Classes

class ExpirationType (value, names=None, *, module=None, qualname=None, type=None, start=1)

The type of expiration to be used while expiring items in cache. The value of this type varies from item to item in cache.

Expand source code
class ExpirationType(Enum):
    """
    The type of expiration to be used while expiring items in cache. The value of this type varies from item to item in
    cache.
    """
    NONE = 1
    """
    Indicates that no expiration is to take place.
    """
    SLIDING = 2
    """
    Indicates that item expiration in cache is to follow idle expiration.
    """
    ABSOLUTE = 3
    """
    Indicates that item expiration in cache is to follow fixed expiration.
    """
    DEFAULT_ABSOLUTE = 4
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from
    'DefaultAbsolute' field in NCache Manager.
    """
    DEFAULT_ABSOLUTE_LONGER = 5
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from
    'DefaultAbsoluteLonger' field in NCache Manager.
    """
    DEFAULT_SLIDING = 6
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from 'DefaultSliding'
    field in NCache Manager.
    """
    DEFAULT_SLIDING_LONGER = 7
    """
    Indicates that item expiration in cache is to follow fixed expiration and value should be taken from
    'DefaultSlidingLonger' field in NCache Manager.
    """

Ancestors

  • enum.Enum

Class variables

var ABSOLUTE

Indicates that item expiration in cache is to follow fixed expiration.

var DEFAULT_ABSOLUTE

Indicates that item expiration in cache is to follow fixed expiration and value should be taken from 'DefaultAbsolute' field in NCache Manager.

var DEFAULT_ABSOLUTE_LONGER

Indicates that item expiration in cache is to follow fixed expiration and value should be taken from 'DefaultAbsoluteLonger' field in NCache Manager.

var DEFAULT_SLIDING

Indicates that item expiration in cache is to follow fixed expiration and value should be taken from 'DefaultSliding' field in NCache Manager.

var DEFAULT_SLIDING_LONGER

Indicates that item expiration in cache is to follow fixed expiration and value should be taken from 'DefaultSlidingLonger' field in NCache Manager.

var NONE

Indicates that no expiration is to take place.

var SLIDING

Indicates that item expiration in cache is to follow idle expiration.