Driver for jKVDB, that uses an SQL table to store key/value data.
| package |
jelix |
|---|
__construct(array $profile) : void
Initialise profile data and create the main object
array
__destruct() : void
_connect()
_disconnect()
_set( $key, $value, $expire)
append(string $key, string $value) : string
stringthe key of the value to modify
stringthe value to append to the current key value
stringthe new value or false if failure
decrement(string $key, mixed $decr = 1) : integer
stringthe key of the value
mixedthe value to substract to the current value
integerthe result, or false if failure
delete(string $key) : boolean
stringthe key
booleanfalse if failure
flush() : boolean
booleantrue if it is a success
garbage() : boolean
booleanfalse if failure
get(string|array $key) : string
string|arraya key or an array of keys
stringor null if the key doesn't exist
increment(string $key, mixed $incr = 1) : integer
stringthe key of the value
mixedthe value to add to the current value
integerthe result, or false if failure
insert(string $key, string $value) : boolean
stringthe key
string
booleanfalse if failure
prepend(string $key, string $value) : string
stringthe key of the value to modify
stringthe value to prepend to the current key value
stringthe new value or false if failure
replace(string $key, string $value) : boolean
stringthe key
string
booleanfalse if failure
set(string $key, string $value) : boolean
stringthe key
string
booleanfalse if failure, if the value is a resource...
setWithTtl(string $key, string $value, integer $ttl) : boolean
stringthe key
stringthe value
integerthe time to live in seconds...
booleanfalse if failure, if the value is a resource...
sync()
table :
_profile : array
| var |
|---|
array
_driverName : string
| var |
|---|
string
_profileName : string
| var |
|---|
string
_connection : object|resource
| var |
|---|
object|resource