76. Class

76.1. Zend\Cache\Storage\Adapter\XCache

76.1.1. Methods

76.1.1.1. __construct

__construct()

Constructor

Parameters:null|array|Traversable|ApcOptions
Throws ExceptionExceptionInterface:
 

76.1.1.2. setOptions

setOptions()

Set options.

Parameters:array|Traversable|ApcOptions
Return type:XCache
See :

76.1.1.3. getOptions

getOptions()

Get options.

Return type:XCacheOptions
See :

76.1.1.4. getTotalSpace

getTotalSpace()

Get total space in bytes

Return type:int|float

76.1.1.5. getAvailableSpace

getAvailableSpace()

Get available space in bytes

Return type:int|float

76.1.1.6. clearByNamespace

clearByNamespace()

Remove items by given namespace

Parameters:string
Return type:boolean

76.1.1.7. clearByPrefix

clearByPrefix()

Remove items matching given prefix

Parameters:string
Return type:boolean

76.1.1.8. flush

flush()

Flush the whole storage

Return type:boolean

76.1.1.9. getIterator

getIterator()

Get the storage iterator

Return type:KeyListIterator

76.1.1.10. internalGetItem

internalGetItem()

Internal method to get an item.

Parameters:
  • string
  • boolean
  • mixed
Return type:

mixed Data on success, null on failure

Throws :

ExceptionExceptionInterface

76.1.1.11. internalHasItem

internalHasItem()

Internal method to test if an item exists.

Parameters:string
Return type:boolean
Throws :ExceptionExceptionInterface

76.1.1.12. internalGetMetadata

internalGetMetadata()

Get metadata of an item.

Parameters:string
Return type:array|boolean Metadata on success, false on failure
Throws :ExceptionExceptionInterface

76.1.1.13. internalSetItem

internalSetItem()

Internal method to store an item.

Parameters:
  • string
  • mixed
Return type:

boolean

Throws :

ExceptionExceptionInterface

76.1.1.14. internalRemoveItem

internalRemoveItem()

Internal method to remove an item.

Parameters:string
Return type:boolean
Throws :ExceptionExceptionInterface

76.1.1.15. internalIncrementItem

internalIncrementItem()

Internal method to increment an item.

Parameters:
  • string
  • int
Return type:

int|boolean The new value on success, false on failure

Throws :

ExceptionExceptionInterface

76.1.1.16. internalDecrementItem

internalDecrementItem()

Internal method to decrement an item.

Parameters:
  • string
  • int
Return type:

int|boolean The new value on success, false on failure

Throws :

ExceptionExceptionInterface

76.1.1.17. internalGetCapabilities

internalGetCapabilities()

Internal method to get capabilities of this adapter

Return type:Capabilities

76.1.1.18. initAdminAuth

initAdminAuth()

Init authentication before calling admin functions

Return type:void

76.1.1.19. resetAdminAuth

resetAdminAuth()

Reset authentication after calling admin functions

Return type:void

76.1.1.20. normalizeMetadata

normalizeMetadata()

Normalize metadata to work with XCache

Parameters:array