MemcachedSessionHandler
extends BaseSessionHandler
in package
Table of Contents
- $lifeTime : int
- $memcachedCache : MemcachedCache
- $prefix : string
- $session : string
- __construct() : mixed
- close() : bool
- delete() : bool
- destroy() : bool
- gc() : bool
- get() : string
- open() : bool
- read() : string
- set() : bool
- write() : bool
- prefix() : string
- Session name prefix olarak kullanılacak
Properties
$lifeTime
protected
int
$lifeTime
= 78840000
$memcachedCache
protected
MemcachedCache
$memcachedCache
$prefix
protected
string
$prefix
= ''
$session
protected
string
$session
Methods
__construct()
public
__construct(MemcachedCache $memcachedCache, array<string|int, mixed> $config) : mixed
Parameters
- $memcachedCache : MemcachedCache
- $config : array<string|int, mixed>
Return values
mixed —close()
public
close() : bool
Tags
Return values
bool —delete()
public
delete(string $key) : bool
Parameters
- $key : string
-
session_id
Tags
Return values
bool —destroy()
public
destroy(mixed $id) : bool
Parameters
- $id : mixed
Tags
Return values
bool —gc()
public
gc(mixed $max_lifetime) : bool
Parameters
- $max_lifetime : mixed
Tags
Return values
bool —get()
public
get(string $key) : string
Parameters
- $key : string
-
session_id
Tags
Return values
string —Encoded string session data
open()
public
open(mixed $path, mixed $name) : bool
Parameters
- $path : mixed
- $name : mixed
Tags
Return values
bool —read()
public
read(mixed $id) : string
Parameters
- $id : mixed
Tags
Return values
string —set()
public
set(string $key, string $session_data) : bool
Parameters
- $key : string
-
session_id
- $session_data : string
Tags
Return values
bool —write()
public
write(mixed $id, mixed $data) : bool
Parameters
- $id : mixed
- $data : mixed
Tags
Return values
bool —prefix()
Session name prefix olarak kullanılacak
protected
prefix(string $key) : string
Parameters
- $key : string
Return values
string —key with prefix