A high performance nosql db
C++ C Python
Latest commit d65aad9 Aug 28, 2016 @yebangyu small fix
Permalink
Failed to load latest commit information.
src small fix Aug 28, 2016
README.md small fix Aug 28, 2016

README.md

Soupen

Soupen is a high performance memory nosql database.

It is an alternative to redis.

How to build

cd Soupen

g++ -O2 src/lib/soupen_math.cpp src/client/soupen_client.cpp src/server/soupen_info_manager.cpp src/server/soupen_db.cpp src/ds/soupen_string.cpp src/ds/soupen_treap.cpp src/ds/soupen_bloom_filter.cpp src/server/soupen_cmd.cpp src/server/soupen_epoll.cpp src/server/soupen_server.cpp -o soupen_server

./soupen_server

How to use

python src/client/soupen_client.py

Feature Supported Right Now

DB operation

select 12 //ok.select 12th db

BloomFilter

bfcreate DB 1024 10 //ok

bfadd DB mysql //ok

bfadd DB redis //ok

bfadd DB soupen //ok

bfadd DB oracle //ok

bfcontains DB soupen //true

bfcontains DB oracle //true

bfcontains DB c++ //false

bfdel DB //ok

Trie

tset db mysql 1 //ok

tset db redis 1 //ok.

tset db soupen 1 //ok

//1 means case sensitive, while 0 means not.

tcontains db soupen //true

tcontains db redis //true

tcontains db REDIS //true

tdel db //ok. delete the trie db

//Note that, the behaviour of following is undefined:

tset db mysql 1

tset db redis 0 //must be "tset db redis 1" , NOT "tset db redis 0"

that is to say, you should determine the flag before you want to create the trie and keep it consistent within a key.

Truth

server

server

client

client