Code Monkey home page Code Monkey logo

rocksd's Introduction

RocksD

A key-vaule and message queue server written in RUST using RocksDB as a backend.

API TODO

KV

GET key Get the value of a key

SET key value [N if not exists|E expire|C compare and set] [milliseconds] Set the string value of a key

SETBIT key offset value Sets or clears the bit at offset in the string value stored at key

MGET key [key ...] Get the values of all the given keys

MSET key value [key value ...] Set multiple keys to multiple values

INCR key increment Increment the integer value of a key by the given amount

Queue

PUSH key value [value ...] Prepend one or multiple values to a list

PUSHX key value [value ...] Prepend a value to a list, only if the list exists

POP key [count] Remove and get the first or more elements in a list

Read key offset [count] Get one or more elements in a list starting at the specified offset

Remove key count Remove one or more elements in a list from the Head

SUB pattern [channel ...] Listen for messages published to the given channels

Common

DEL key [key ...] Delete one or more key

EXISTS key [key ...] Determine if a key exists

EXPIRE key seconds Set a key's time to live in seconds

PERSIST key Remove the expiration from a key

RENAME key newkey Rename a key

RENAMENX key newkey Rename a key, only if the new key does not exist

TTL key Get the time to live for a key

TYPE key Determine the type stored at key

UNLINK key [key ...] Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.

LLEN key Get the key's value length by bytes or queue' length

Count pattern Scan cursor pattern

Sys

PING [message] Ping the server

INFO [section] Get information and statistics about the server

QUIT Close the connection

rocksd's People

Contributors

zensh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

onriv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.