https://github.com/caledoniaproject/resty-memcached-consistent
Consistent Hashing in memcached, a modified version of resty-memcached
https://github.com/caledoniaproject/resty-memcached-consistent
Last synced: 12 months ago
JSON representation
Consistent Hashing in memcached, a modified version of resty-memcached
- Host: GitHub
- URL: https://github.com/caledoniaproject/resty-memcached-consistent
- Owner: CaledoniaProject
- Created: 2013-06-24T11:05:39.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-24T11:10:35.000Z (about 13 years ago)
- Last Synced: 2025-04-03T08:01:45.126Z (about 1 year ago)
- Language: Lua
- Size: 121 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Consistent Hashing LUA memcache-client
Based on openresty memcached client
## Example usage
local memcached = require "resty.memcachedp"
-- initiate a new instance
local memc = memcached:new({
{ host = '127.0.0.1', port = 11211, hash = 12345 },
{ host = '127.0.0.1', port = 11212, hash = 12346 },
})
-- storage
memc:set ("abc", 123)
-- retrieving
print (memc:get ("abc"))
## Known problems
- multi_get, multi_set will not work with consistent hashing (correct me if I'm wrong)