12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php namespace System\Session\Driver;
- class Memcached implements \System\Session\Driver {
-
- public function load($id)
- {
- return \System\Cache::driver('memcached')->get($id);
- }
-
- public function save($session)
- {
- \System\Cache::driver('memcached')->put($session['id'], $session, \System\Config::get('session.lifetime'));
- }
-
- public function delete($id)
- {
- \System\Cache::driver('memcached')->forget($id);
- }
-
- public function sweep($expiration)
- {
-
- }
- }
|