\OCPICache

This interface defines method for accessing the file based user cache.

Summary

Methods
Constants
get()
set()
hasKey()
remove()
clear()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get()

get(string  $key) : mixed

Get a value from the user cache

Parameters

string $key

Returns

mixed

set()

set(string  $key, mixed  $value, integer  $ttl) : boolean

Set a value in the user cache

Parameters

string $key
mixed $value
integer $ttl

Time To Live in seconds. Defaults to 606024

Returns

boolean

hasKey()

hasKey(string  $key) : boolean

Check if a value is set in the user cache

Parameters

string $key

Returns

boolean

remove()

remove(string  $key) : boolean

Remove an item from the user cache

Parameters

string $key

Returns

boolean

clear()

clear(string  $prefix = '') : boolean

Clear the user cache of all entries starting with a prefix

Parameters

string $prefix

(optional)

Returns

boolean