PHP Class Jamm\Memory\Shm\ShmMem

Inheritance: extends SingleMemory
Afficher le fichier Open project: jamm/memory

Protected Properties

Свойство Type Description
$id
$max_size
$shm
$shmkey
$shmsize

Méthodes publiques

Méthode Description
__construct ( string $ID = '', integer $size, integer $maxsize )
__destruct ( )
del_mem_block ( )
get_ID ( )
get_stat ( )
set_ID ( $ID )

Méthodes protégées

Méthode Description
readmemory ( ) : mixed Read data from memory storage
refresh ( ) : boolean | integer Synchronize data with memory storage
resize ( integer $size ) : boolean Resize memory block

Method Details

__construct() public méthode

public __construct ( string $ID = '', integer $size, integer $maxsize )
$ID string by default is __FILE__
$size integer initial size
$maxsize integer maximum allowed size

__destruct() public méthode

public __destruct ( )

del_mem_block() public méthode

public del_mem_block ( )

get_ID() public méthode

public get_ID ( )

get_stat() public méthode

public get_stat ( )

readmemory() protected méthode

Read data from memory storage
protected readmemory ( ) : mixed
Résultat mixed

refresh() protected méthode

Synchronize data with memory storage
protected refresh ( ) : boolean | integer
Résultat boolean | integer

resize() protected méthode

Resize memory block
protected resize ( integer $size ) : boolean
$size integer
Résultat boolean

set_ID() public méthode

public set_ID ( $ID )

Property Details

$id protected_oe property

protected $id

$max_size protected_oe property

protected $max_size

$shm protected_oe property

protected $shm

$shmkey protected_oe property

protected $shmkey

$shmsize protected_oe property

protected $shmsize