CKFinder 3 – PHP Connector Documentation
CacheManager Class Reference

Public Member Functions

 __construct (AdapterInterface $adapter)
 
 set ($key, $value)
 
 get ($key)
 
 delete (string $key)
 
 copy ($sourceKey, $targetKey)
 
 move ($sourceKey, $targetKey)
 
 deleteByPrefix ($keyPrefix)
 
 changePrefix ($sourcePrefix, $targetPrefix)
 

Protected Attributes

 $adapter
 

Detailed Description

The CacheManager class.

Constructor & Destructor Documentation

◆ __construct()

__construct ( AdapterInterface  $adapter)

Constructor.

Member Function Documentation

◆ changePrefix()

changePrefix (   $sourcePrefix,
  $targetPrefix 
)

Changes the prefix for all entries given a key prefix.

Parameters
string$sourcePrefix
string$targetPrefix
Returns
bool true if successful

◆ copy()

copy (   $sourceKey,
  $targetKey 
)

Copies the value for a given key to another key.

Parameters
string$sourceKey
string$targetKey
Returns
bool true if successful

◆ delete()

delete ( string  $key)

Deletes the value under a given key from cache.

Returns
bool true if successful

◆ deleteByPrefix()

deleteByPrefix (   $keyPrefix)

Deletes all cache entries with a given key prefix.

Parameters
string$keyPrefix
Returns
bool true if successful

◆ get()

get (   $key)

Returns the value for a given key from cache.

Parameters
string$key
Returns
mixed

◆ move()

move (   $sourceKey,
  $targetKey 
)

Moves the value for a given key to another key.

Parameters
string$sourceKey
string$targetKey
Returns
bool true if successful

◆ set()

set (   $key,
  $value 
)

Sets the value in cache for a given key.

Parameters
string$key
mixed$value
Returns
bool true if successful

The documentation for this class was generated from the following file: