72. Class

72.1. Zend\Cache\Storage\Adapter\WinCache

72.1.1. Methods

72.1.1.1. __construct

__construct()

Constructor

Parameters:array|Traversable|WinCacheOptions
Throws ExceptionExceptionInterface:
 

72.1.1.2. setOptions

setOptions()

Set options.

Parameters:array|Traversable|WinCacheOptions
Return type:WinCache
See :

72.1.1.3. getOptions

getOptions()

Get options.

Return type:WinCacheOptions
See :

72.1.1.4. getTotalSpace

getTotalSpace()

Get total space in bytes

Return type:int|float

72.1.1.5. getAvailableSpace

getAvailableSpace()

Get available space in bytes

Return type:int|float

72.1.1.6. flush

flush()

Flush the whole storage

Return type:bool

72.1.1.7. internalGetItem

internalGetItem()

Internal method to get an item.

Parameters:
  • string
  • bool
  • mixed
Return type:

mixed Data on success, null on failure

Throws :

ExceptionExceptionInterface

72.1.1.8. internalGetItems

internalGetItems()

Internal method to get multiple items.

Parameters:array
Return type:array Associative array of keys and values
Throws :ExceptionExceptionInterface

72.1.1.9. internalHasItem

internalHasItem()

Internal method to test if an item exists.

Parameters:string
Return type:bool
Throws :ExceptionExceptionInterface

72.1.1.10. internalGetMetadata

internalGetMetadata()

Get metadata of an item.

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

72.1.1.11. internalSetItem

internalSetItem()

Internal method to store an item.

Parameters:
  • string
  • mixed
Return type:

bool

Throws :

ExceptionExceptionInterface

72.1.1.12. internalSetItems

internalSetItems()

Internal method to store multiple items.

Parameters:array
Return type:array Array of not stored keys
Throws :ExceptionExceptionInterface

72.1.1.13. internalAddItem

internalAddItem()

Add an item.

Parameters:
  • string
  • mixed
Return type:

bool

Throws :

ExceptionExceptionInterface

72.1.1.14. internalAddItems

internalAddItems()

Internal method to add multiple items.

Parameters:array
Return type:array Array of not stored keys
Throws :ExceptionExceptionInterface

72.1.1.15. internalReplaceItem

internalReplaceItem()

Internal method to replace an existing item.

Parameters:
  • string
  • mixed
Return type:

bool

Throws :

ExceptionExceptionInterface

72.1.1.16. internalRemoveItem

internalRemoveItem()

Internal method to remove an item.

Parameters:string
Return type:bool
Throws :ExceptionExceptionInterface

72.1.1.17. internalRemoveItems

internalRemoveItems()

Internal method to remove multiple items.

Parameters:array
Return type:array Array of not removed keys
Throws :ExceptionExceptionInterface

72.1.1.18. internalIncrementItem

internalIncrementItem()

Internal method to increment an item.

Parameters:
  • string
  • int
Return type:

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

Throws :

ExceptionExceptionInterface

72.1.1.19. internalDecrementItem

internalDecrementItem()

Internal method to decrement an item.

Parameters:
  • string
  • int
Return type:

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

Throws :

ExceptionExceptionInterface

72.1.1.20. internalGetCapabilities

internalGetCapabilities()

Internal method to get capabilities of this adapter

Return type:Capabilities

72.1.1.21. normalizeMetadata

normalizeMetadata()

Normalize metadata to work with WinCache

Parameters:array
Return type:void