]> git.saurik.com Git - redis.git/blobdiff - client-libraries/ruby/examples/list.rb
client libs removed from Redis git
[redis.git] / client-libraries / ruby / examples / list.rb
diff --git a/client-libraries/ruby/examples/list.rb b/client-libraries/ruby/examples/list.rb
deleted file mode 100644 (file)
index 8f186c1..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'rubygems'
-require 'redis'
-
-r = Redis.new
-
-r.delete 'logs'
-
-puts
-
-p "pushing log messages into a LIST"
-r.push_tail 'logs', 'some log message'
-r.push_tail 'logs', 'another log message'
-r.push_tail 'logs', 'yet another log message'
-r.push_tail 'logs', 'also another log message'
-
-puts
-p 'contents of logs LIST'
-
-p r.list_range('logs', 0, -1)
-
-puts
-p 'Trim logs LIST to last 2 elements(easy circular buffer)'
-
-r.list_trim('logs', -2, -1)
-
-p r.list_range('logs', 0, -1)