nydus 012

nydus 012
  • Downloads: 184
  • Requirements:
  • Size:
  • Licence:
  • Version: nydus
  • Added At: 2011-18-08
  • Publisher Site:



nydus 012

Share

nydus is a Python module that provides generic database utilities, including connection clustering and routing so you can scale like a pro.The following example creates a Redis connection cluster which will distribute reads and writes based on a simple modulus lookup of the hashed key:>>> from nydus.db import create_cluster>>> redis = create_cluster({>>> 'engine': 'nydus.db.backends.redis.Redis',>>> 'router': 'nydus.db.routers.redis.PartitionRouter',>>> 'hosts': {>>> 0: {'db': 0},>>> 1: {'db': 1},>>> 2: {'db': 2},>>> }>>> })>>> res = redis.incr('foo')>>> assert res == 1 Requirements:· Python
nydus is a Python module that provides generic database utilities, including connection clustering and routing so you can scale like a pro.The following example creates a Redis connection cluster which will distribute reads and writes based on a simple modulus lookup of the hashed key:>>> from nydus.db import create_cluster>>> redis = create_cluster({>>> 'engine': 'nydus.db.backends.redis.Redis',>>> 'router': 'nydus.db.routers.redis.PartitionRouter',>>> 'hosts': {>>> 0: {'db': 0},>>> 1: {'db': 1},>>> 2: {'db': 2},>>> }>>> })>>> res = redis.incr('foo')>>> assert res == 1 Requirements:· Python �. you can free download nydus 012 now.
Soft85 only provide legal software, please help us keeping pur site legal, if you think this page is violating copyrights please let us know by clicking here Here






comments powered by Disqus

Download nydus 012 _FREE_