Commits

jvanasco committed 4ff86bd

fixed PEP whitespace issue
added docs
modified .gitignore (hope this is what you want!)

  • Participants
  • Parent commits 53f8a07

Comments (0)

Files changed (2)

File docs/build/api.rst

 =============
 
 See the section :ref:`creating_backends` for details on how to
-register new backends or :ref:`changing_backend_behavior` for details on 
-how to alter the behavior of existing backends.  
+register new backends or :ref:`changing_backend_behavior` for details on
+how to alter the behavior of existing backends.
 
 .. automodule:: dogpile.cache.api
     :members:
-    
+
 
 Backends
 ==========
 .. automodule:: dogpile.cache.backends.memory
     :members:
 
+.. automodule:: dogpile.cache.backends.memory_pickle
+    :members:
+
 .. automodule:: dogpile.cache.backends.memcached
     :members:
 
 
 .. automodule:: dogpile.cache.backends.file
     :members:
-    
+
 .. automodule:: dogpile.cache.proxy
     :members:
-    
- 
+
+
 Plugins
 ========
 

File dogpile/cache/backends/memory.py

         value = self._cache.get(key, NO_VALUE)
         if value is not NO_VALUE :
             if self.is_pickle :
-                value = pickle.loads( value )
+                value = pickle.loads(value)
         return value 
 
     def get_multi(self, keys):
         values = []
         for key in keys :
-            values.append( self.get( key ) )
+            values.append(self.get(key))
         return values
 
     def set(self, key, value):
         if self.is_pickle :
-            value = pickle.dumps( value )
+            value = pickle.dumps(value)
         self._cache[key] = value
 
     def set_multi(self, mapping):
         for key,value in mapping.items():
-            self.set( key , value )
+            self.set(key, value)
 
     def delete(self, key):
         self._cache.pop(key, None)