PHP 클래스 Jamm\Memory\Shm\ShmMem

상속: extends SingleMemory
파일 보기 프로젝트 열기: jamm/memory

보호된 프로퍼티들

프로퍼티 타입 설명
$id
$max_size
$shm
$shmkey
$shmsize

공개 메소드들

메소드 설명
__construct ( string $ID = '', integer $size, integer $maxsize )
__destruct ( )
del_mem_block ( )
get_ID ( )
get_stat ( )
set_ID ( $ID )

보호된 메소드들

메소드 설명
readmemory ( ) : mixed Read data from memory storage
refresh ( ) : boolean | integer Synchronize data with memory storage
resize ( integer $size ) : boolean Resize memory block

메소드 상세

__construct() 공개 메소드

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 __destruct ( )

del_mem_block() 공개 메소드

public del_mem_block ( )

get_ID() 공개 메소드

public get_ID ( )

get_stat() 공개 메소드

public get_stat ( )

readmemory() 보호된 메소드

Read data from memory storage
protected readmemory ( ) : mixed
리턴 mixed

refresh() 보호된 메소드

Synchronize data with memory storage
protected refresh ( ) : boolean | integer
리턴 boolean | integer

resize() 보호된 메소드

Resize memory block
protected resize ( integer $size ) : boolean
$size integer
리턴 boolean

set_ID() 공개 메소드

public set_ID ( $ID )

프로퍼티 상세

$id 보호되어 있는 프로퍼티

protected $id

$max_size 보호되어 있는 프로퍼티

protected $max_size

$shm 보호되어 있는 프로퍼티

protected $shm

$shmkey 보호되어 있는 프로퍼티

protected $shmkey

$shmsize 보호되어 있는 프로퍼티

protected $shmsize