GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cyue/dcache: distribute cache program using consistent hash, with inheriting cache_interface, you can use every store you want (redis, memcache...) as the real cache storage

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
cache_interface.py
cache_interface.py
 
 
cshash.py
cshash.py
 
 
dcache.py
dcache.py
 
 
exception.py
exception.py
 
 
test.py
test.py
 
 

Repository files navigation

dcache

distribute cache program using consistent hash, with inheriting cache_interface, you can use every store you want (redis, memcache...) as the real cache storage

dependent on

redis-py : redis is the default cache storage, so dcache dependent on redis-py, if the real condition is based on other storage, redis-py is not required

example

nodes = ['localhost:6379', 'localhost:6378', 'localhost:6377']

dc = Dcache(nodes=nodes, rep=2, cache=RedisCache)

"rep" is virtual node num in use, RedisCache is a cache class inherit cache_interface, every user defined cache inherited from cache_interface can be loaded in dcache

END

About

distribute cache program using consistent hash, with inheriting cache_interface, you can use every store you want (redis, memcache...) as the real cache storage

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.