vBulletin v6.0.4

vB_Memcached extends vB_Memcache
in package

This implements an object wrapper for Memcached

Table of Contents

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
add()  : bool
Add an item under a new key
close()  : bool
Close any memcache open connections
connect()  : int
Connect Wrapper for Memcache
delete()  : bool
Delete an item
flush()  : bool
Invalidate all items in the cache
get()  : mixed
Retrieve an item
instance()  : mixed
set()  : bool
Store an item
setConfig()  : mixed

Methods

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $serialized) : void
Parameters
$serialized : array<string|int, mixed>

add()

Add an item under a new key

public add(mixed $key, mixed $value[, mixed $expiration = 0 ]) : bool
Parameters
$key : mixed
$value : mixed
$expiration : mixed = 0
Return values
bool

close()

Close any memcache open connections

public close() : bool
Return values
bool

Whether closing connection was success or failure.

connect()

Connect Wrapper for Memcache

public connect() : int
Return values
int

When a new connection is made 1 is returned, 2 if a connection already existed, 3 if problems on adding server

delete()

Delete an item

public delete(string $key) : bool
Parameters
$key : string
Return values
bool

flush()

Invalidate all items in the cache

public flush() : bool
Return values
bool

get()

Retrieve an item

public get(mixed $keys) : mixed
Parameters
$keys : mixed

instance()

public static instance() : mixed

set()

Store an item

public set(mixed $key, mixed $value[, mixed $expiration = 0 ]) : bool
Parameters
$key : mixed
$value : mixed
$expiration : mixed = 0
Return values
bool

setConfig()

public setConfig(mixed &$config) : mixed
Parameters
$config : mixed

        
On this page

Search results