Pulsar Data Store Server¶
Pulsar-ds is a python implementation of the popular redis data store. It uses pulsar asynchronous framework to create a single-threaded worker responding to TCP-requests in the same way as redis does.
To run a stand alone server create a script with the following code:
from pulsar.apps.data import PulsarDS
if __name__ == '__main__':
PulsarDS().start()
More information on the pulsar data store example.
Check out these benchmarks
Implementation¶
Pulsar Data Store Server¶
-
class
pulsar.apps.ds.server.
PulsarDS
(callable=None, load_config=True, **params)[source]¶ A
SocketServer
serving a pulsar datastore.
Commands¶
Commands not yet supported: bgrewriteaof, debug, eval, evalsha, hscan, migrate, object, scan, script, shutdown, slaveof, slowlog, sscan, sync, zrevrange, zrevrangebyscore, zscan
Keys¶
del, dump, exists, expire, expireat, keys, move, persist, pexpire, pexpireat, pttl, randomkey, rename, renamenx, restore, sort, ttl, type
Strings¶
append, bitcount, bitop, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, mset, msetnx, psetex, set, setbit, setex, setnx, setrange, strlen
Hashes¶
hdel, hexists, hget, hgetall, hincrby, hincrbyfloat, hkeys, hlen, hmget, hmset, hset, hsetnx, hvals
Lists¶
blpop, brpop, brpoplpush, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx
Sets¶
sadd, scard, sdiff, sdiffstore, sinter, sinterstore, sismember, smembers, smove, spop, srandmember, srem, sunion, sunionstore
Sorted Sets¶
zadd, zcard, zcount, zincrby, zinterstore, zrange, zrangebyscore, zrank, zrem, zremrangebyrank, zremrangebyscore, zscore, zunionstore
Pub/Sub¶
psubscribe, publish, pubsub, punsubscribe, subscribe, unsubscribe