Coder Social home page Coder Social logo

yedis's Introduction

Yedis

Yedis is a high performance memory nosql database.

It is designed to replace redis.

Yedis means Yebangyu + redis. LOL.

How to build

g++ -O2 src/server/yedis_global_info.cpp src/server/yedis_db.cpp src/ds/yedis_string.cpp src/ds/yedis_treap.cpp src/ds/yedis_bloom_filter.cpp src/server/yedis_order.cpp src/server/yedis_epoll.cpp src/server/yedis_server.cpp -o yedis_server

src/server/yedis_server

How to use

python src/client/yedis_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 yedis //ok

bfadd DB oracle //ok

bfcontains DB yedis //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 yedis 1 //ok

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

tcontains db yedis //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

yedis's People

Contributors

yebangyu avatar

Watchers

Yuanyuan Zhang avatar

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.