Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Keyspace proxy outline in main README

  • Loading branch information...
commit e441aef08caec5c5f866b71ba50cb5345a35e959 1 parent e15c5e3
@atl atl authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.rst
View
11 README.rst
@@ -555,6 +555,17 @@ product of operations on the underlying store::
>>> len(r['newlist'])
2
+Finally, you may structure key names into arbitrary "keyspaces"
+denoted by format strings::
+
+ >>> name = r.keyspace['user:%04d:name']
+ >>> parents = r.keyspace['user:%04d:parents']
+ >>> property = r.keyspace['user:%04d:%s']
+ >>> name[1] = 'Jerry'
+ >>> property[1,'parents'] = ['Morty', 'Helen']
+ >>> parents.items()
+ ('user:0001:parents', ['Morty', 'Helen'])
+
For more information, see the redish.proxy documentation.
Installation
Please sign in to comment.
Something went wrong with that request. Please try again.