Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
Cache Class Reference

Cache session save handler. More...

Public Member Functions

 __construct (CacheStorage $cacheStorage)
 Constructor.
 
 open ($savePath, $name)
 Open Session.
 
 close ()
 Close session.
 
 read ($id)
 Read session data.
 
 write ($id, $data)
 Write session data.
 
 destroy ($id)
 Destroy session.
 
 gc ($maxlifetime)
 Garbage Collection.
 
 setCacheStorage (CacheStorage $cacheStorage)
 Set cache storage.
 
 getCacheStorage ()
 Get cache storage.
 
 getCacheStorge ()
 

Protected Attributes

 $sessionSavePath
 
 $sessionName
 
 $cacheStorage
 

Detailed Description

Cache session save handler.

Constructor & Destructor Documentation

__construct ( CacheStorage  $cacheStorage)

Constructor.

Parameters
CacheStorage$cacheStorage

Member Function Documentation

close ( )

Close session.

Returns
bool
destroy (   $id)

Destroy session.

Parameters
string$id
Returns
bool
gc (   $maxlifetime)

Garbage Collection.

Parameters
int$maxlifetime
Returns
bool
getCacheStorage ( )

Get cache storage.

Returns
CacheStorage
getCacheStorge ( )
Deprecated:
Misspelled method - use getCacheStorage() instead
open (   $savePath,
  $name 
)

Open Session.

Parameters
string$savePath
string$name
Returns
bool
read (   $id)

Read session data.

Parameters
string$id
Returns
string
setCacheStorage ( CacheStorage  $cacheStorage)

Set cache storage.

Parameters
CacheStorage$cacheStorage
Returns
Cache
write (   $id,
  $data 
)

Write session data.

Parameters
string$id
string$data
Returns
bool

Member Data Documentation

$cacheStorage
protected
$sessionName
protected
$sessionSavePath
protected