This is the cl-ssdb Reference Manual, version 0.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 04:28:50 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-ssdb
SSDB client for Common Lisp.
Muyinliu Xing <muyinliu@gmail.com>
MIT
0.0.1
rutils
(system).
cl-ppcre
(system).
usocket
(system).
flexi-streams
(system).
parse-number
(system).
babel
(system).
packages.lisp
(file).
connection.lisp
(file).
cl-ssdb.lisp
(file).
commands.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-ssdb/cl-ssdb.asd
cl-ssdb/packages.lisp
cl-ssdb/connection.lisp
cl-ssdb/cl-ssdb.lisp
cl-ssdb/commands.lisp
cl-ssdb/connection.lisp
packages.lisp
(file).
cl-ssdb
(system).
*connection*
(special variable).
*echo-p*
(special variable).
*echo-stream*
(special variable).
close-connection
(function).
connect
(function).
connected-p
(function).
disconnect
(function).
initialize-instance
(method).
open-connection
(function).
reconnect
(function).
ssdb-connection
(class).
with-connection
(macro).
with-persistent-connection
(macro).
with-recursive-connection
(macro).
+default-host+
(constant).
+default-port+
(constant).
+utf8+
(constant).
conn-auth
(reader method).
conn-host
(reader method).
conn-port
(reader method).
conn-socket
(reader method).
(setf conn-socket)
(writer method).
conn-stream
(reader method).
(setf conn-stream)
(writer method).
connection-open-p
(function).
defconstant
(macro).
reconnect-restart-case
(macro).
reopen-connection
(function).
with-reconnect-restart
(macro).
cl-ssdb/cl-ssdb.lisp
connection.lisp
(file).
cl-ssdb
(system).
def-cmd
(macro).
ssdb-bad-reply
(condition).
ssdb-connection-error
(condition).
ssdb-error
(condition).
ssdb-error-reply
(condition).
tell
(generic function).
with-pipelining
(macro).
*cmd-prefix*
(special variable).
*pipeline*
(special variable).
*pipelined*
(special variable).
ensure-string
(function).
expect
(generic function).
receive
(function).
ssdb-error-error
(reader method).
ssdb-error-message
(reader method).
cl-ssdb/commands.lisp
cl-ssdb.lisp
(file).
cl-ssdb
(system).
add_allow_ip
(function).
add_deny_ip
(function).
auth
(function).
bitcount
(function).
clear_binlog
(function).
compact
(function).
countbit
(function).
dbsize
(function).
del
(function).
del_allow_ip
(function).
del_deny_ip
(function).
exists
(function).
expire
(function).
flushdb
(function).
get
(function).
getbit
(function).
getset
(function).
hclear
(function).
hdel
(function).
hexists
(function).
hget
(function).
hgetall
(function).
hincr
(function).
hkeys
(function).
hlist
(function).
hrlist
(function).
hrscan
(function).
hscan
(function).
hset
(function).
hsize
(function).
incr
(function).
info
(function).
list_allow_ip
(function).
list_deny_ip
(function).
multi_del
(function).
multi_get
(function).
multi_hdel
(function).
multi_hget
(function).
multi_hset
(function).
multi_set
(function).
multi_zdel
(function).
multi_zget
(function).
multi_zset
(function).
ping
(function).
qback
(function).
qclear
(function).
qfront
(function).
qget
(function).
qlist
(function).
qpop
(function).
qpop_back
(function).
qpop_front
(function).
qpush
(function).
qpush_back
(function).
qpush_front
(function).
qrange
(function).
qrlist
(function).
qset
(function).
qsize
(function).
qslice
(function).
qtrim_back
(function).
qtrim_front
(function).
rkeys
(function).
rscan
(function).
scan
(function).
set
(function).
setbit
(function).
setnx
(function).
setx
(function).
strlen
(function).
substr
(function).
ttl
(function).
zavg
(function).
zclear
(function).
zcount
(function).
zdel
(function).
zexists
(function).
zget
(function).
zincr
(function).
zkeys
(function).
zlist
(function).
zpop_back
(function).
zpop_front
(function).
zrange
(function).
zrank
(function).
zremrangebyrank
(function).
zremrangebyscore
(function).
zrlist
(function).
zrrange
(function).
zrrank
(function).
zrscan
(function).
zscan
(function).
zset
(function).
zsize
(function).
zsum
(function).
version
(function).
Packages are listed by definition order.
cl-ssdb
ssdb
common-lisp
.
org.mapcar.parse-number
.
rtl
.
*connection*
(special variable).
*echo-p*
(special variable).
*echo-stream*
(special variable).
add_allow_ip
(function).
add_deny_ip
(function).
auth
(function).
bitcount
(function).
clear_binlog
(function).
close-connection
(function).
compact
(function).
connect
(function).
connected-p
(function).
countbit
(function).
dbsize
(function).
def-cmd
(macro).
del
(function).
del_allow_ip
(function).
del_deny_ip
(function).
disconnect
(function).
exists
(function).
expire
(function).
flushdb
(function).
get
(function).
getbit
(function).
getset
(function).
hclear
(function).
hdel
(function).
hexists
(function).
hget
(function).
hgetall
(function).
hincr
(function).
hkeys
(function).
hlist
(function).
hrlist
(function).
hrscan
(function).
hscan
(function).
hset
(function).
hsize
(function).
incr
(function).
info
(function).
list_allow_ip
(function).
list_deny_ip
(function).
multi_del
(function).
multi_get
(function).
multi_hdel
(function).
multi_hget
(function).
multi_hset
(function).
multi_set
(function).
multi_zdel
(function).
multi_zget
(function).
multi_zset
(function).
open-connection
(function).
ping
(function).
qback
(function).
qclear
(function).
qfront
(function).
qget
(function).
qlist
(function).
qpop
(function).
qpop_back
(function).
qpop_front
(function).
qpush
(function).
qpush_back
(function).
qpush_front
(function).
qrange
(function).
qrlist
(function).
qset
(function).
qsize
(function).
qslice
(function).
qtrim_back
(function).
qtrim_front
(function).
reconnect
(function).
rkeys
(function).
rscan
(function).
scan
(function).
set
(function).
setbit
(function).
setnx
(function).
setx
(function).
ssdb-bad-reply
(condition).
ssdb-connection
(class).
ssdb-connection-error
(condition).
ssdb-error
(condition).
ssdb-error-reply
(condition).
strlen
(function).
substr
(function).
tell
(generic function).
ttl
(function).
with-connection
(macro).
with-persistent-connection
(macro).
with-pipelining
(macro).
with-recursive-connection
(macro).
zavg
(function).
zclear
(function).
zcount
(function).
zdel
(function).
zexists
(function).
zget
(function).
zincr
(function).
zkeys
(function).
zlist
(function).
zpop_back
(function).
zpop_front
(function).
zrange
(function).
zrank
(function).
zremrangebyrank
(function).
zremrangebyscore
(function).
zrlist
(function).
zrrange
(function).
zrrank
(function).
zrscan
(function).
zscan
(function).
zset
(function).
zsize
(function).
zsum
(function).
*cmd-prefix*
(special variable).
*pipeline*
(special variable).
*pipelined*
(special variable).
+default-host+
(constant).
+default-port+
(constant).
+utf8+
(constant).
conn-auth
(generic reader).
conn-host
(generic reader).
conn-port
(generic reader).
conn-socket
(generic reader).
(setf conn-socket)
(generic writer).
conn-stream
(generic reader).
(setf conn-stream)
(generic writer).
connection-open-p
(function).
defconstant
(macro).
ensure-string
(function).
expect
(generic function).
receive
(function).
reconnect-restart-case
(macro).
reopen-connection
(function).
ssdb-error-error
(generic reader).
ssdb-error-message
(generic reader).
version
(function).
with-reconnect-restart
(macro).
Definitions are sorted by export status, category, package, and then by lexicographic order.
The current SSDB connection.
Whether the server-client communication should be echoed to the stream specified by *ECHO-STREAM*. The default is NIL, meaning no echoing.
A stream to which the server-client communication will be echoed for debugging purposes. The default is *STANDARD-OUTPUT*.
Define and export a function with the name <*CMD-REDIX*>-<CMD> for processing a SSDB command CMD. Here REPLY-TYPE is the expected reply format.
Evaluate BODY with the current connection bound to a new connection specified by the given HOST and PORT
Execute BODY inside WITH-CONNECTION. But if connection is broken due to SSDB-CONNECTION-ERROR (a network error or timeout), transparently reopen it.
Delay execution of EXPECT’s inside BODY to the end, so that all commands are first sent to the server and then their output is received and collected into a list. So commands return :PIPELINED instead of the expected results.
Execute BODY with *CONNECTION* bound to the default SSDB connection. If connection is already established, reuse it.
Available since: 1.9.3
Add one allow ip rule.
Warning: After you have modify any allow/deny rule, you must modify both the configuration file! Or the rules will be reload from configuration file after you restart ssdb-server.
Parameters
rule - IP address filter rule, specify only the prefix, 127.0.1, 127.0, etc.
Return Value
Status reply.
Available since: 1.9.3
Add one deny ip rule.
Warning: After you have modify any allow/deny rule, you must modify both the configuration file! Or the rules will be reload from configuration file after you restart ssdb-server.
Parameters
rule - IP address filter rule, specify only the prefix, 127.0.1, 127.0, etc.
Return Value
Status reply.
Available since: 1.7.0.0
Authenticate the connection.
Warning: The password is sent in plain-text over the network!
Parameters
password - the password
Return Value
Status reply.
Count the number of set bits (population counting) in a string. Like Redis’s bitcount.
Parameters
key -
start - Optional, inclusive, if start is negative, count from start’th character from the end of string. unit: bytes
end - Optional, inclusive. unit: bytes
Return Value
The number of bits set to 1.
Clear binlog, will get an "ok".
Note: It’s NOT a public command, but it works.
Close the socket of CONN.
Compress database, will get an "ok".
Note: It’s NOT a public command, but it works.
Connect to SSDB server.
Is there a current connection?
Count the number of set bits (population counting) in a string. Unlike bitcount, it take part of the string by start and size, not start and end.
Parameters
key -
start - Optional, inclusive, if start is negative, count from start’th character from the end of string.
size - Optional, if size is negative, then that many characters will be omitted from the end of string.
Return Value
The number of bits set to 1.
Return the approximate size of the database, in bytes. If compression is enabled, the size will be of the compressed data.
Return Value
Size in bytes.
Delete specified key.
Parameters
key -
Return Value
Status reply. You can not determine whether the key exists or not by delete command.
Available since: 1.9.3
Delete one allow ip rule.
Warning: After you have modify any allow/deny rule, you must modify both the configuration file! Or the rules will be reload from configuration file after you restart ssdb-server.
Parameters
rule - IP address filter rule, specify only the prefix, 127.0.1, 127.0, etc.
Return Value
Status reply.
Available since: 1.9.3
Delete one deny ip rule.
Warning: After you have modify any allow/deny rule, you must modify both the configuration file! Or the rules will be reload from configuration file after you restart ssdb-server.
Parameters
rule - IP address filter rule, specify only the prefix, 127.0.1, 127.0, etc.
Return Value
Status reply.
Disconnect from SSDB server.
Verify if the specified key exists.
Parameters
key -
Return Value
If the key exists, return 1, otherwise return 0.
Set the time left to live in seconds, only for keys of KV type.
Parameters
key -
ttl - number of seconds to live.
Return Value
If the key exists then ttl will be set/update, return 1, otherwise return 0.
flushdb is NOT a standard command. But as ssdb-cli supported it as a client side command since 1.9.2, adding this command would be fine. It’s convenient for test.
Return Example:
10
("kv" . 1)
("hash" . 2)
("zset" . 3)
("list" . 4)
Get the value related to the specified key.
Parameters
key -
Return Value
Value reply.
Return the value to the key, if the key does not exists, return not_found Status Code.
Return a single bit out of a string.
Parameters
key -
offset - bit offset.
Return Value
0 or 1.
Sets a value and returns the previous entry at that key.
Parameters
key -
value -
Return Value
If the key already exists, the value related to that key is returned. Otherwise return not_found Status Code. The value is either added or updated.
Delete all keys in a hashmap.
Parameters
name - The name of the hashmap.
Return Value
The number of key deleted in that hashmap.
Delete specified key of a hashmap. To delete the whole hashmap, use hclear.
Parameters
name - The name of the hashmap
key - The key of the key-value pair in the hashmap
Return Value
If the key exists, return 1, otherwise return 0.
Verify if the specified key exists in a hashmap.
Parameters
name - The name of the hashmap
key -
Return Value
If the key exists, return 1, otherwise return 0.
Get the value related to the specified key of a hashmap
Parameters
name - The name of the hashmap
key - The key of the key-value pair in the hashmap
Return Value
Value reply.
Return the value to the key, if the key does not exists, return not_found Status Code.
Returns the whole hash, as an array of strings indexed by strings.
Parameters
name - The name of the hashmap
Return Value
Key-Value list.
The key-value list is return as: k1 v1 k2 v2 ...
Since 1.7.0.1, *incr methods return error if value cannot be converted to integer.
Increment the number stored at key in a hashmap by num. The num argument could be a negative integer. The old number is first converted to an integer before increment, assuming it was stored as literal integer.
Parameters
name - the name of the hashmap
‘key -
num - Optional, must be a signed integer, default is 1
Return Value
The new value. If the old value cannot be converted to an integer, returns error Status Code.
List keys of a hashmap in range (key_start, key_end].
("", ""] means no range limit.
Parameters
name - The name of the hashmap
key_start - The lower bound(not included) of keys to be returned, empty string means -inf(no limit).
key_end - The upper bound(inclusive) of keys to be returned, empty string means +inf(no limit).
limit - Up to that many elements will be returned.
Return Value
Key list.
The key list is return as: k1 k2 ...
List hashmap names in range (name_start, name_end].
("", ""] means no range limit.
Refer to scan command for more information about how it work.
Parameters
name_start - The lower bound(not included) of names to be returned, empty string means -inf(no limit).
name_end - The upper bound(inclusive) of names to be returned, empty string means +inf(no limit).
limit - Up to that many elements will be returned.
Return Value
Key-Value list.
The key-value list is return as: k1 v1 k2 v2 ...
Like hlist, but in reverse order.
Like hscan, but in reverse order.
List key-value pairs of a hashmap with keys in range (key_start, key_end].
("", ""] means no range limit.
Refer to scan command for more information about how it work.
Parameters
name - The name of the hashmap
key_start - The lower bound(not included) of keys to be returned, empty string means -inf(no limit).
key_end - The upper bound(inclusive) of keys to be returned, empty string means +inf(no limit).
limit - Up to that many pairs will be returned.
Return Value
Key-Value list.
The key-value list is return as: k1 v1 k2 v2 ...
Set the string value in argument as value of the key of a hashmap.
Parameters
name - The name of the hashmap
key - The key of the key-value pair in the hashmap
value - The value of the key-value pair in the hashmap
Return Value
Returns 1 if key is a new key in the hashmap and value is set, else returns 0.
Return the number of key-value pairs in the hashmap.
Parameters
name - The name of the hashmap
Return Value
Integer reply.
Since 1.7.0.1, *incr methods return error if value cannot be converted to integer.
Increment the number stored at key by num. The num argument could be a negative integer. The old number is first converted to an integer before increment, assuming it was stored as literal integer.
Parameters
key -
num - Optional, must be a signed integer, default is 1
Return Value
The new value. If the old value cannot be converted to an integer, returns error Status Code.
Return information about the server.
Parameters
opt - Optional, could be cmd, leveldb
Return Value
Key-Value list.
The key-value list is return as: k1 v1 k2 v2 ...
Available since: 1.9.3
List all allow ip rules.
Parameters
None.
Return Value
List reply.
Available since: 1.9.3
List all deny ip rules.
Parameters
None.
Return Value
List reply.
Delete specified multiple keys.
Parameters
key1 -
...
Return Value
false on error, other values indicate OK.
Get the values related to the specified multiple keys
Parameters
key1 -
...
Return Value
Key-value list.
The keys not found will not be included in the reply, the key-value list is return as: k1 v1 k2 v2 ...
Delete specified multiple keys in a hashmap.
Parameters
name -
key1 -
...
Return Value
false on error, other values indicate OK.
Get the values related to the specified multiple keys of a hashmap.
Parameters
name -
key1 -
...
Return Value
Key-value list.
The keys not found will not be included in the reply, the key-value list is return as: k1 v1 k2 v2 ...
Set multiple key-value pairs(kvs) of a hashmap in one method call.
Parameters
name -
key1 -
value1 -
...
Return Value
false on error, other values indicate OK.
Set multiple key-value pairs(kvs) in one method call.
Parameters
key1 -
value1 -
...
Return Value
false on error, other values(count of keys) indicate OK.
Delete specified multiple keys of a zset.
Parameters
name -
key1 -
...
Return Value
false on error, other values indicate OK.
Get the values related to the specified multiple keys of a zset.
Parameters
name -
key1 -
...
Return Value
Key-value list.
The keys not found will not be included in the reply, the key-value list is return as: k1 v1 k2 v2 ...
Set multiple key-score pairs(kvs) of a zset in one method call.
Parameters
name -
key1 -
score1 -
...
Return Value
false on error, other values indicate OK.
Create a socket connection to the host and port of CONNECTION and set the socket of CONN to the associated socket.
Ping server, will get an "ok", NOT a "pong". Note: It’s NOT a public command, but it works.
Returns the last element of a queue.
Parameters
name -
Return Value
false on error, null if queue empty, otherwise the item returned.
Clear the queue.
Parameters
name -
Return Value false on error.
Returns the first element of a queue.
Parameters
name -
Return Value
false on error, null if queue empty, otherwise the item returned.
Returns the element a the specified index(position). 0 the first element, 1 the second ... -1 the last element.
Parameters
name -
index - negative intexes accepted.
Return Value
false on error, null if no element corresponds to this index, otherwise the item returned.
List list/queue names in range (name_start, name_end].
("", ""] means no range limit.
Refer to scan command for more information about how it work.
Parameters
name_start - The lower bound(not included) of names to be returned, empty string means -inf(no limit).
name_end - The upper bound(inclusive) of names to be returned, empty string means +inf(no limit).
limit - Up to that many elements will be returned.
Return Value
false on error, otherwise an array containing the names.
Alias of qpop_front
Pop out one or more elements from the tail of a queue.
Parameters
name -
size - Optional, number of elements to pop, default is 1
Return Value
false on error. When size is not specified or less than 2, returns null if queue empty, otherwise the item removed. When size is specified and greater than or equal to 2, returns an array of elements removed.
Pop out one or more elements from the head of a queue.
Parameters
name -
size - Optional, number of elements to pop, default is 1
Return Value
false on error. When size is not specified or less than 2, returns null if queue empty, otherwise the item removed. When size is specified and greater than or equal to 2, returns an array of elements removed.
Alias of qpush_back
Add an or more than one element to the end of the queue.
Parameters
name -
item1 -
...
Return Value
The length of the list after the push operation, false on error.
Add one or more than one element to the head of the queue.
Parameters
name -
item1 -
...
Return Value
The length of the list after the push operation, false on error.
Returns a portion of elements from the queue at the specified range [offset, offset + limit].
Parameters
name -
offset -
limit -
Return Value
false on error, otherwise an array containing items.
Like qlist, but in reverse order.
Sets the list element at index to value. An error is returned for out of range indexes.
Parameters
name -
index - negative intexes accepted.
val -
Return Value
false on error, other values indicate OK.
Returns the number of items in the queue.
Parameters
name -
Return Value
false on error, otherwise an integer, 0 if the queue does not exist.
Returns a portion of elements from the queue at the specified range [begin, end]. begin and end could be negative.
Parameters
name -
begin -
end -
Return Value
false on error, otherwise an array containing items.
Remove multi elements from the tail of a queue.
Parameters
name -
size - Number of elements to delete.
Return Value
false on error. Return the number of elements removed.
Remove multi elements from the head of a queue.
Parameters
name -
size - Number of elements to delete.
Return Value
false on error. Return the number of elements removed.
Close and reopen the connection to SSDB server.
Since 1.9.0
Like keys, but in reverse order.
Like scan, but in reverse order.
List key-value pairs with keys in range (key_start, key_end].
("", ""] means no range limit.
This command can do wildchar * like search, but only prefix search, and the * char must never occur in key_start and key_end!
Parameters
key_start - The lower bound(not included) of keys to be returned, empty string means -inf(no limit).
key_end - The upper bound(inclusive) of keys to be returned, empty string means +inf(no limit).
limit - Up to that many pairs will be returned.
Return Value
false on error, otherwise an associative array containing the key-value pairs.
Set the value of the key.
Parameters
key -
value -
Return Value
false on error, other values indicate OK.
Changes a single bit of a string. The string is auto expanded.
Parameters
key -
offset - bit offset, must in range of [0, 1073741824].
val - 0 or 1.
Return Value
The value of the bit before it was set: 0 or 1. If val is not 0 or 1, returns false.
Set the string value in argument as value of the key if and only if the key doesn’t exist.
Parameters
key -
value -
Return Value
1: value is set, 0: key already exists.
Set the value of the key, with a time to live.
Unlike Redis, the ttl will not be remove when later set the same key!
Parameters
key -
value -
ttl - number of seconds to live.
Return Value
false on error, other values indicate OK.
Return the number of bytes of a string.
Parameters
key -
Return Value
The number of bytes of the string, if key not exists, returns 0.
Return part of a string, like PHP’s substr() function.
Parameters
key -
start - Optional, the offset of first byte returned. If start is negative, the returned string will start at the start’th character from the end of string.
size - Optional, number of bytes returned. If size is negative, then that many characters will be omitted from the end of string.
Return Value
The extracted part of the string.
Returns the time left to live in seconds, only for keys of KV type.
Parameters
key -
Return Value
Time to live of the key, in seconds, -1 if there is no associated expire to the key.
Returns the average of elements of the sorted set stored at the specified key which have scores in the range [start,end].
Parameters
name - The name of the zset.
score_start - The minimum score related to keys(inclusive), empty string means -inf(no limit).
score_end - The maximum score related to keys(inclusive), empty string means +inf(no limit).
Return Value
Delete all keys in a zset.
Parameters
name - Name of the zset
Return Value
Returns the number of elements of the sorted set stored at the specified key which have scores in the range [start,end].
Parameters
name - The name of the zset.
score_start - The minimum score related to keys(inclusive), empty string means -inf(no limit).
score_end - The maximum score related to keys(inclusive), empty string means +inf(no limit).
Return Value
Delete specified key of a zset.
Parameters
name - Name of the zset
key -
Return Value
Verify if the specified key exists in a zset.
Parameters
name - Name of the zset
key -
Return Value
Get the score related to the specified key of a zset
Parameters
name - Name of the zset
key -
Return Value
Increment the number stored at key in a zset by num.
Parameters
name - Name of the zset
key -
num - Must be a signed integer.
Return Value
List keys in a zset.
Parameters
name - Name of the zset
key_start -
score_start -
score_end -
limit -
Return Value
List zset names in range (name_start, name_end].
Refer to scan command for more information about how it work.
Parameters
name - Name of the zset
name_start -
name_end -
limit -
Return Value
Since 1.9.0
Delete and return limit element(s) from back of the zset.
Parameters
name - The name of the zset
limit -
Return Value
Since 1.9.0
Delete and return limit element(s) from front of the zset.
Parameters
name - The name of the zset
limit -
Return Value
Returns a range of key-score pairs by index range [offset, offset + limit).
Parameters
name - Name of the zset
offset - Positive integer, the returned pairs will start at this offset.
limit - Positive integer, up to this number of pairs will be returned.
Return Value
key-score list
Returns the rank(index) of a given key in the specified sorted set.
Parameters
name - Name of the zset
key -
Return Value
Delete the elements of the zset which have rank in the range [start,end].
Parameters
name - Name of the zset
Return Value
count of deleted keys
Delete the elements of the zset which have score in the range [start,end].
Parameters
name - Name of the zset
Return Value
List zset names in range (name_start, name_end], in reverse order.
Parameters
name - Name of the zset
name_start -
name_end -
limit -
Return Value
Returns a range of key-score pairs by index range [offset, offset + limit), in reverse order.
Parameters
name - Name of the zset
Return Value
Returns the rank(index) of a given key in the specified sorted set, in reverse order.
Parameters
name - Name of the zset
Return Value
List key-score pairs of a zset, in reverse order. See method zkeys().
Parameters
name - Name of the zset
Return Value
List key-score pairs where key-score in range (key_start+score_start, score_end].
Refer to scan command for more information about how it work.
Parameters
name - Name of the zset
Return Value
key-score list
Set the score of the key of a zset.
Parameters
name - Name of the zset
key -
score -
Return Value
Return the number of pairs of a zset.
Parameters
name - The name of the zset
Return Value
Returns the sum of elements of the sorted set stored at the specified key which have scores in the range [start,end].
Parameters
name - The name of the zset.
score_start - The minimum score related to keys(inclusive), empty string means -inf(no limit).
score_end - The maximum score related to keys(inclusive), empty string means +inf(no limit).
Return Value
Send a command to SSDB server over a socket connection.
CMD is the command name (a string or a symbol), and ARGS are its arguments
(keyword arguments are also supported).
SSDB protocol error is detected.
Conditions of this type are signaled when errors occur
that break the connection stream. They offer a :RECONNECT restart.
Any SSDB-related error.
Error reply is received from SSDB server.
Representation of a SSDB connection.
cl-ssdb::+default-host+
:host
This slot is read-only.
cl-ssdb::+default-port+
:port
This slot is read-only.
common-lisp
.
Prefix for functions names that implement SSDB commands.
A list of expected results from the current pipeline.
Indicates, that commands are sent in pipelined mode.
Make sure VALUE is evaluated only once (to appease SBCL).
Signal the condition of type SSDB-CONNECTION-ERROR denoted by
the given ERROR and COMMENT offering a :RECONNECT restart to re-evaluate BODY.
When, during the execution of BODY, an error occurs that breaks the connection, a SSDB-CONNECTION-ERROR is signalled, offering a :RECONNECT restart that will re-evaluate body after the conenction is re-established.
Is the socket of CONNECTION open?
Close and reopen CONN.
Return SSDB Server’s version string. Note: it is NOT a standard command.
ssdb-connection
)) ¶automatically generated reader method
auth
.
ssdb-connection
)) ¶automatically generated reader method
host
.
ssdb-connection
)) ¶automatically generated reader method
port
.
ssdb-connection
)) ¶automatically generated reader method
ssdb-connection
)) ¶automatically generated writer method
ssdb-connection
)) ¶automatically generated reader method
ssdb-connection
)) ¶automatically generated writer method
Receive and process the reply of the given type from SSDB server.
(eql :end)
)) ¶(eql :bulk)
)) ¶Receive and process data reply, which is just a string.
(eql :list)
)) ¶Receive and process data reply, which is a list of string.
(eql :boolean)
)) ¶(eql :number)
)) ¶(eql :integer)
)) ¶(eql :status)
)) ¶Receive and process status reply, which is just a string.
ssdb-error
)) ¶ssdb-error
)) ¶Jump to: | (
A B C D E F G H I L M O P Q R S T V W Z |
---|
Jump to: | (
A B C D E F G H I L M O P Q R S T V W Z |
---|
Jump to: | *
+
A C E H M P S |
---|
Jump to: | *
+
A C E H M P S |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|