Stud.IP  4.2 Revision
StudipNullCache Class Reference
Inheritance diagram for StudipNullCache:
Inheritance graph
Collaboration diagram for StudipNullCache:
Collaboration graph

Public Member Functions

 expire ($key)
 
 flush ()
 
 read ($key)
 
 write ($name, $content, $expire=43200)
 

Additional Inherited Members

- Data Fields inherited from StudipCache
const DEFAULT_EXPIRATION = 43200
 

Member Function Documentation

◆ expire()

expire (   $key)

Expires just a single key.

Parameters
stringthe key
Returns
void

Implements StudipCache.

◆ flush()

flush ( )

Expire all items from the cache.

Implements StudipCache.

◆ read()

read (   $key)

Reads just a single key from the cache.

Parameters
stringthe key
Returns
mixed the corresponding value

Implements StudipCache.

◆ write()

write (   $name,
  $content,
  $expire = 43200 
)

Store data at the server.

Parameters
stringthe item's key.
mixedthe item's content (will be serialized if necessary).
intthe item's expiry time in seconds. Defaults to 12h.
Returns
mixed returns TRUE on success or FALSE on failure.

Implements StudipCache.


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