[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/SessionHandler/ -> memcache.php (sommaire)

(pas de description)

Poids: 233 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

SessionHandler_memcache:: (8 méthodes):
  close()
  read()
  write()
  destroy()
  gc()
  _connect()
  _lockSession()
  _unlockSession()


Classe: SessionHandler_memcache  - X-Ref

SessionHandler:: implementation for memcache.
memcache website: http://www.danga.com/memcached/

Required parameters:<pre>
'hostspec'  The hostname of the memcache server.
'port'      The port on which to connect to the memcache server.</pre>

Optional parameters:<pre>
'persistent'  Use persistent DB connections? (boolean)
'compression' Use compression when storing sessions.</pre>

$Horde: framework/SessionHandler/SessionHandler/memcache.php,v 1.1.2.1 2006/05/02 17:27:49 chuck Exp $

Copyright 2005-2006 Rong-En Fan <rafan@infor.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

close()   X-Ref
Close the SessionHandler backend.

return: boolean  True on success, false otherwise.

read($id)   X-Ref
Read the data for a particular session identifier from the
SessionHandler backend.

param: string $id  The session identifier.
return: string  The session data.

write($id, $session_data)   X-Ref
Write session data to the SessionHandler backend.

param: string $id            The session identifier.
param: string $session_data  The session data.
return: boolean  True on success, false otherwise.

destroy($id)   X-Ref
Destroy the data for a particular session identifier in the
SessionHandler backend.

param: string $id  The session identifier.
return: boolean  True on success, false otherwise.

gc($maxlifetime = 300)   X-Ref
Garbage collect stale sessions from the SessionHandler backend.

param: integer $maxlifetime  The maximum age of a session.
return: boolean  True on success, false otherwise.

_connect()   X-Ref
Attempts to open a connection to the memcache server(s).


_lockSession($id)   X-Ref


_unlockSession()   X-Ref




Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7