1810. Class

1810.1. Zend\Cache\Storage\Capabilities

1810.1.1. Methods

1810.1.1.1. __construct

__construct()

Constructor

Parameters:
  • StorageInterface
  • stdClass
  • array
  • null|Capabilities

1810.1.1.2. getAdapter

getAdapter()

Get the storage adapter

Return type:StorageInterface

1810.1.1.3. getSupportedDatatypes

getSupportedDatatypes()

Get supported datatypes

Return type:array

1810.1.1.4. setSupportedDatatypes

setSupportedDatatypes()

Set supported datatypes

Parameters:
  • stdClass
  • array
Throws ExceptionInvalidArgumentException:
 
Return type:

Capabilities Fluent interface

1810.1.1.5. getSupportedMetadata

getSupportedMetadata()

Get supported metadata

Return type:array

1810.1.1.6. setSupportedMetadata

setSupportedMetadata()

Set supported metadata

Parameters:
  • stdClass
  • string[]
Throws ExceptionInvalidArgumentException:
 
Return type:

Capabilities Fluent interface

1810.1.1.7. getMinTtl

getMinTtl()

Get minimum supported time-to-live

Return type:int 0 means items never expire

1810.1.1.8. setMinTtl

setMinTtl()

Set minimum supported time-to-live

Parameters:
  • stdClass
  • int
Throws ExceptionInvalidArgumentException:
 
Return type:

Capabilities Fluent interface

1810.1.1.9. getMaxTtl

getMaxTtl()

Get maximum supported time-to-live

Return type:int 0 means infinite

1810.1.1.10. setMaxTtl

setMaxTtl()

Set maximum supported time-to-live

Parameters:
  • stdClass
  • int
Throws ExceptionInvalidArgumentException:
 
Return type:

Capabilities Fluent interface

1810.1.1.11. getStaticTtl

getStaticTtl()

Is the time-to-live handled static (on write) or dynamic (on read)

Return type:bool

1810.1.1.12. setStaticTtl

setStaticTtl()

Set if the time-to-live handled static (on write) or dynamic (on read)

Parameters:
  • stdClass
  • bool
Return type:

Capabilities Fluent interface

1810.1.1.13. getTtlPrecision

getTtlPrecision()

Get time-to-live precision

Return type:float

1810.1.1.14. setTtlPrecision

setTtlPrecision()

Set time-to-live precision

Parameters:
  • stdClass
  • float
Throws ExceptionInvalidArgumentException:
 
Return type:

Capabilities Fluent interface

1810.1.1.15. getUseRequestTime

getUseRequestTime()

Get use request time

Return type:bool

1810.1.1.16. setUseRequestTime

setUseRequestTime()

Set use request time

Parameters:
  • stdClass
  • bool
Return type:

Capabilities Fluent interface

1810.1.1.17. getExpiredRead

getExpiredRead()

Get if expired items are readable

Return type:bool

1810.1.1.18. setExpiredRead

setExpiredRead()

Set if expired items are readable

Parameters:
  • stdClass
  • bool
Return type:

Capabilities Fluent interface

1810.1.1.19. getMaxKeyLength

getMaxKeyLength()

Get maximum key lenth

Return type:int -1 means unknown, 0 means infinite

1810.1.1.20. setMaxKeyLength

setMaxKeyLength()

Set maximum key length

Parameters:
  • stdClass
  • int
Throws ExceptionInvalidArgumentException:
 
Return type:

Capabilities Fluent interface

1810.1.1.21. getNamespaceIsPrefix

getNamespaceIsPrefix()

Get if namespace support is implemented as prefix

Return type:bool

1810.1.1.22. setNamespaceIsPrefix

setNamespaceIsPrefix()

Set if namespace support is implemented as prefix

Parameters:
  • stdClass
  • bool
Return type:

Capabilities Fluent interface

1810.1.1.23. getNamespaceSeparator

getNamespaceSeparator()

Get namespace separator if namespace is implemented as prefix

Return type:string

1810.1.1.24. setNamespaceSeparator

setNamespaceSeparator()

Set the namespace separator if namespace is implemented as prefix

Parameters:
  • stdClass
  • string
Return type:

Capabilities Fluent interface

1810.1.1.25. getCapability

getCapability()

Get a capability

Parameters:
  • string
  • mixed
Return type:

mixed

1810.1.1.26. setCapability

setCapability()

Change a capability

Parameters:
  • stdClass
  • string
  • mixed
Return type:

Capabilities Fluent interface

Throws :

ExceptionInvalidArgumentException