Constructor
Parameters: | array|Traversable|WinCacheOptions – |
---|---|
Throws ExceptionExceptionInterface: | |
Set options.
Parameters: | array|Traversable|WinCacheOptions – |
---|---|
Return type: | WinCache |
See : |
Get available space in bytes
Return type: | int|float |
---|
Flush the whole storage
Return type: | bool |
---|
Internal method to get an item.
Parameters: |
|
---|---|
Return type: | mixed Data on success, null on failure |
Throws : | ExceptionExceptionInterface |
Internal method to get multiple items.
Parameters: | array – |
---|---|
Return type: | array Associative array of keys and values |
Throws : | ExceptionExceptionInterface |
Internal method to test if an item exists.
Parameters: | string – |
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Get metadata of an item.
Parameters: | string – |
---|---|
Return type: | array|bool Metadata on success, false on failure |
Throws : | ExceptionExceptionInterface |
Internal method to store an item.
Parameters: |
|
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to store multiple items.
Parameters: | array – |
---|---|
Return type: | array Array of not stored keys |
Throws : | ExceptionExceptionInterface |
Add an item.
Parameters: |
|
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to add multiple items.
Parameters: | array – |
---|---|
Return type: | array Array of not stored keys |
Throws : | ExceptionExceptionInterface |
Internal method to replace an existing item.
Parameters: |
|
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to remove an item.
Parameters: | string – |
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to remove multiple items.
Parameters: | array – |
---|---|
Return type: | array Array of not removed keys |
Throws : | ExceptionExceptionInterface |
Internal method to increment an item.
Parameters: |
|
---|---|
Return type: | int|bool The new value on success, false on failure |
Throws : | ExceptionExceptionInterface |
Internal method to decrement an item.
Parameters: |
|
---|---|
Return type: | int|bool The new value on success, false on failure |
Throws : | ExceptionExceptionInterface |