Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
REDISCache dan PubSub
Rifqi Alfian@merembablas
kesibukan@anakbelajarAplikasi belajar untuk anak usia dini
Cache Redis• 2 cara :TTL , Volatile Objectmaxmemory
Redis as an LRU cacheLeast Recently Used
konfigurasi• maxmemory bytes• maxmemory-policy policy• maxmemory-samples jml_sample
Conf : maxmemory• Bytes1k => 1000 bytes1kb => 1024 bytes1m => 1000000 bytes1mb => 1024*1024 bytes1g => 1000000000 bytes1gb...
Conf : maxmemory-policy• volatile-lru (default)• allkeys-lru• volatile-random• allkeys-random• volatile-ttl• noeviction
Conf : maxmemory-samples• Default : 3• TTL dan LRU bukan ‘precise algorithms’
PubSub Redis
Command• subscribe• unsubscribe• publish• psubscribe• punsubscribe
PSUBSCRIBE dan PUNSUBSCRIBE• Glob pattern matching• Ex :PSUBSCRIBE news.*match : news.art, news.world.war channel
Use Case• Chat• Notification System• Message Queue
Terima Kasih• Salvatore Sanfilippo• Om Hiraq• Om Wahyu• NoSQL Indonesia• PHP Indonesia
Upcoming SlideShare
Loading in …5
×

Slide NoSQL Indonesia - Redis Cache n PubSub

1,177 views

Published on

berikut slide presentasi tentang pubsub dan cache di redis, via google hangout

Published in: Technology, News & Politics
  • Be the first to comment

  • Be the first to like this

Slide NoSQL Indonesia - Redis Cache n PubSub

  1. 1. REDISCache dan PubSub
  2. 2. Rifqi Alfian@merembablas
  3. 3. kesibukan@anakbelajarAplikasi belajar untuk anak usia dini
  4. 4. Cache Redis• 2 cara :TTL , Volatile Objectmaxmemory
  5. 5. Redis as an LRU cacheLeast Recently Used
  6. 6. konfigurasi• maxmemory bytes• maxmemory-policy policy• maxmemory-samples jml_sample
  7. 7. Conf : maxmemory• Bytes1k => 1000 bytes1kb => 1024 bytes1m => 1000000 bytes1mb => 1024*1024 bytes1g => 1000000000 bytes1gb => 1024*1024*1024 bytes
  8. 8. Conf : maxmemory-policy• volatile-lru (default)• allkeys-lru• volatile-random• allkeys-random• volatile-ttl• noeviction
  9. 9. Conf : maxmemory-samples• Default : 3• TTL dan LRU bukan ‘precise algorithms’
  10. 10. PubSub Redis
  11. 11. Command• subscribe• unsubscribe• publish• psubscribe• punsubscribe
  12. 12. PSUBSCRIBE dan PUNSUBSCRIBE• Glob pattern matching• Ex :PSUBSCRIBE news.*match : news.art, news.world.war channel
  13. 13. Use Case• Chat• Notification System• Message Queue
  14. 14. Terima Kasih• Salvatore Sanfilippo• Om Hiraq• Om Wahyu• NoSQL Indonesia• PHP Indonesia

×