Skip to content

ckampfe/rex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rex

A little crappy implementation of Redis

Elixir CI

Run

start the server:

$ iex -S mix

connect to it:

$ redis-cli

supported operations

Strings

  • GET
  • SET

Hashes

  • HGET
  • HSET
  • HGETALL
  • HLEN
  • HDEL
  • HKEYS
  • HMGET
  • HEXISTS
  • HINCRBY

Lists

  • LPUSH
  • RPUSH
  • LPOP
  • RPOP
  • LLEN
  • BLPOP
  • BRPOP

Sets

  • SADD
  • SMEMBERS
  • SISMEMBER

Misc

  • PING

design

Strings (GET, SET) are partitioned across N servers where N = System.schedulers_online().

Each hash and list gets its own server, so operations on hash/list a and hash/list b happen concurrently.

Uses Thousand Island for TCP connection pooling.

About

A little crappy implementation of Redis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages