\Horde_Prefs_Cache_HordeCache

Horde_Cache cache implementation for the preferences system.

Summary

Methods
Properties
Constants
__construct()
get()
store()
remove()
No public properties found
No constants found
_cacheId()
$_params
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : string

Configuration parameters.

'user' is always available as an entry.

Type

string

Methods

__construct()

__construct(string  $user, array  $params = array()) 

Constructor.

Parameters

string $user

The username.

array $params

Additional configuration parameters:

  • cache: (Horde_Cache) [REQUIRED] Cache object.
  • prefix: (string) Cache prefix.

get()

get(string  $scope) : mixed

Retrieves the requested preferences scope from the cache backend.

Parameters

string $scope

Scope specifier.

Returns

mixed —

Returns false if no data is available, otherwise the Horde_Prefs_Scope object.

store()

store(\Horde_Prefs_Scope  $scope_ob) 

Stores preferences in the cache backend.

Parameters

\Horde_Prefs_Scope $scope_ob

The scope object to store.

remove()

remove(string  $scope = null) 

Removes preferences from the cache.

Parameters

string $scope

The scope to remove. If null, clears entire cache.

_cacheId()

_cacheId(string  $scope) : string

Get cache ID.

Parameters

string $scope

Scope ID.

Returns

string —

Cache ID.