Permalink
Browse files

Merge branch 'master' of git@github.com:igrigorik/tokyo-recipes

  • Loading branch information...
2 parents 64b3547 + 6cb03d7 commit 9d9ca5ac55cd3f3ccf41ab948c4a2686bfdc2e27 @igrigorik committed Jul 9, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 expire/README.rdoc
View
@@ -1,9 +1,9 @@
= Auto record expire based on TTL
Implements TTL-based record expiry via a Lua script which is periodically executed by the TC runtime.
- - The calling period is customizable via -extpc flag
- - Data is stored inside a 'table' engine where key 'x' stores the unix timestamp for the expiry date
- - Lua cleanup script is called periodically to scan the database for keys ready to be removed, which are then purged from the DB.
+- The calling period is customizable via -extpc flag
+- Data is stored inside a 'table' engine where key 'x' stores the unix timestamp for the expiry date
+- Lua cleanup script is called periodically to scan the database for keys ready to be removed, which are then purged from the DB.
== Starting server
# call expire script every 5 seconds
@@ -15,5 +15,5 @@ Implements TTL-based record expiry via a Lua script which is periodically execut
> nil
> {"name"=>"bob", "x"=>"1247025691"}
-Source: http://alpha.mixi.co.jp/blog/?p=862
-Source: http://alpha.mixi.co.jp/blog/?p=318
+- Source: http://alpha.mixi.co.jp/blog/?p=862
+- Source: http://alpha.mixi.co.jp/blog/?p=318

0 comments on commit 9d9ca5a

Please sign in to comment.