Fully Qualified Name: | Laminas\Cache\Storage\Capabilities |
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Capabilities |
getAdapter() | Get the storage adapter | Capabilities |
getExpiredRead() | Get if expired items are readable | Capabilities |
getLockOnExpire() | Get "lock-on-expire" support in seconds. | Capabilities |
getMaxKeyLength() | Get maximum key length | Capabilities |
getMaxTtl() | Get maximum supported time-to-live | Capabilities |
getMinTtl() | Get minimum supported time-to-live | Capabilities |
getNamespaceIsPrefix() | Get if namespace support is implemented as prefix | Capabilities |
getNamespaceSeparator() | Get namespace separator if namespace is implemented as prefix | Capabilities |
getStaticTtl() | Is the time-to-live handled static (on write) or dynamic (on read) | Capabilities |
getSupportedDatatypes() | Get supported datatypes | Capabilities |
getSupportedMetadata() | Get supported metadata | Capabilities |
getTtlPrecision() | Get time-to-live precision | Capabilities |
getUseRequestTime() | Get use request time | Capabilities |
setExpiredRead() | Set if expired items are readable | Capabilities |
setLockOnExpire() | Set "lock-on-expire" support in seconds. | Capabilities |
setMaxKeyLength() | Set maximum key length | Capabilities |
setMaxTtl() | Set maximum supported time-to-live | Capabilities |
setMinTtl() | Set minimum supported time-to-live | Capabilities |
setNamespaceIsPrefix() | Set if namespace support is implemented as prefix | Capabilities |
setNamespaceSeparator() | Set the namespace separator if namespace is implemented as prefix | Capabilities |
setStaticTtl() | Set if the time-to-live handled static (on write) or dynamic (on read) | Capabilities |
setSupportedDatatypes() | Set supported datatypes | Capabilities |
setSupportedMetadata() | Set supported metadata | Capabilities |
setTtlPrecision() | Set time-to-live precision | Capabilities |
setUseRequestTime() | Set use request time | Capabilities |
Constructor
Parameter Name | Type | Description |
---|---|---|
$storage | \StorageInterface | |
$marker | \stdClass | |
$capabilities | array | |
$baseCapabilities | null|\Capabilities |
Returns:
Get the storage adapter
Returns: \StorageInterface
Get if expired items are readable
Returns: bool
Get "lock-on-expire" support in seconds.
Returns: int 0 = Expired items will never be retrieved >0 = Time in seconds an expired item could be retrieved -1 = Expired items could be retrieved forever
Get maximum key length
Returns: int -1 means unknown, 0 means infinite
Get maximum supported time-to-live
Returns: int 0 means infinite
Get minimum supported time-to-live
Returns: int 0 means items never expire
Get if namespace support is implemented as prefix
Returns: bool
Get namespace separator if namespace is implemented as prefix
Returns: string
Is the time-to-live handled static (on write) or dynamic (on read)
Returns: bool
Get supported datatypes
Returns: array
Get supported metadata
Returns: array
Get time-to-live precision
Returns: float
Get use request time
Returns: bool
Set if expired items are readable
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$flag | bool |
Returns: \Capabilities Fluent interface
Set "lock-on-expire" support in seconds.
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$timeout | int |
Returns: \Capabilities Fluent interface
Set maximum key length
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$maxKeyLength | int |
Returns: \Capabilities Fluent interface
Set maximum supported time-to-live
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$maxTtl | int |
Returns: \Capabilities Fluent interface
Set minimum supported time-to-live
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$minTtl | int |
Returns: \Capabilities Fluent interface
Set if namespace support is implemented as prefix
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$flag | bool |
Returns: \Capabilities Fluent interface
Set the namespace separator if namespace is implemented as prefix
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$separator | string |
Returns: \Capabilities Fluent interface
Set if the time-to-live handled static (on write) or dynamic (on read)
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$flag | bool |
Returns: \Capabilities Fluent interface
Set supported datatypes
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$datatypes | array |
Returns: \Capabilities Fluent interface
Set supported metadata
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$metadata | string[] |
Returns: \Capabilities Fluent interface
Set time-to-live precision
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$ttlPrecision | float |
Returns: \Capabilities Fluent interface
Set use request time
Parameter Name | Type | Description |
---|---|---|
$marker | \stdClass | |
$flag | bool |
Returns: \Capabilities Fluent interface