Redis Workshop Manoj Kumar (manoj_nits@yahoo.com)
Where to get it http://redis.io/ http://redis.io/download http://redis.io/clients http://redis.io/commands AWS - ElasticCache
Memcached Vs Redis Memcached is fast and awesome Redis is not faster than Memcached Memcached is all KV Redis is KV,List,Sets, HashSets… Redis has Lua Memcached needs user to be aware of data size
redis-cli Start with: http://try.redis.io/ Connecting to Server:./redis-cli -h host.ip.add.redis -p 6379 Some common commands: info -> connected_clients:1,# Memory,#Stats expired_keys,evicted_keys,keyspace_hits keyspace_misses, # CPU,# Keyspace,db0:keys,expires,avg_ttl FLUSH_ALL, Keys *
Data Types Strings, Hashes, Lists, Sets,Sorted sets, Bitmaps,Hyperloglogs K,V K,V of K,V K,V of V=List K,V of V=Set K,V of V=Set with Rank K,V of V=0101 K,V of V=Set cardinality
Simple Application 1. Analyze data and requirement. 2. Push the data to redis in batch of 10, 3. Check netstat, 4. Check “info”, 5. Get list of buses originating from Bangalore, 6. Buses with amenity 4 or 8, 7. Buses that have MTicket , Sleeper and Partial Cancellation enabled.
Next : Cohort analysis Buses that have Ticket , Sleeper and Partial Cancellation enabled -> Try it using BitMaps.
Next :Lua Offloading logic,computing and memory.
Next : Pub/Sub For notification and alerts
Thanks

redis basics