Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

explained __contains__

  • Loading branch information...
commit 25cb43b8197918378cbd163579ff5a64b06e867f 1 parent c1ed1f0
Adam Lindsay atl authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 redish/proxy.py
4 redish/proxy.py
@@ -106,5 +106,9 @@ def __setitem__(self, key, value):
106 106 pline.execute()
107 107
108 108 def __contains__(self, key):
  109 + """
  110 + We check for existence within the *proxy object*, and so we
  111 + must look in both the backing store and the object's "empties."
  112 + """
109 113 return self.exists(key) or key in self.empties
110 114

0 comments on commit 25cb43b

Please sign in to comment.
Something went wrong with that request. Please try again.