This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 3edbbbda2360bcf0d64768c92f6802b60ede5469
tree 84d4854183ce9a842e7323e7cb654fe1738c8297
parent 8576be2a799cc4a9f003104e2ace06aa346fb336
tree 84d4854183ce9a842e7323e7cb654fe1738c8297
parent 8576be2a799cc4a9f003104e2ace06aa346fb336
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Jan 10 21:25:35 -0800 2009 | |
| |
README | Thu Feb 12 14:34:42 -0800 2009 | |
| |
Rakefile | Sat Jan 10 21:25:57 -0800 2009 | |
| |
ext/ | Mon Jan 12 23:21:46 -0800 2009 | |
| |
fixtures/ | Sat Jan 10 20:37:17 -0800 2009 | |
| |
lib/ | Thu Feb 12 14:34:13 -0800 2009 | |
| |
spec/ | Mon Jan 12 23:23:20 -0800 2009 | |
| |
tasks/ | Sat Jan 10 21:25:57 -0800 2009 |
README
EventedCache is an eventmachine based memcache client. It should be ultrafast and scalable since it leverages the power
of ragel to parse memcache protocol and the scalability of eventmachine.
EM.run{
# connect to memcached
cache = EventedCache.connect('localhost', 11211)
# set a value that expires in 1 second
cache.set('key', 'hello!', 1)
# read the value
cache.get('key'){ |val|
# val.data == 'hello!'
puts val.data
}
# wait for it to expire and read it again
EM.add_timer(2){
cache.get('key'){ |val|
# val == nil
puts val
}
}
}






