vBulletin v6.0.4

vB_Memcache
in package
Uses vB_Trait_NoSerialize

This implements an object wrapper for Memcache

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(string $key, mixed $value[, mixed $expiration = 0 ]) : bool
Parameters
$key : string
$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(string $key, mixed $value[,  $expiration = 0 ]) : bool
Parameters
$key : string
$value : mixed
$expiration : = 0
Return values
bool

setConfig()

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

        
On this page

Search results