Package suds :: Module cache :: Class ObjectCache
[hide private]
[frames] | no frames]

Class ObjectCache

source code

Cache --+    
        |    
FileCache --+
            |
           ObjectCache

Provides pickled object caching.

Instance Methods [hide private]
str
fnsuffix(self)
Get the file name suffix
source code
any
get(self, id)
Get a object from the cache by ID.
source code
 
put(self, id, object)
Put a object into the cache.
source code

Inherited from FileCache: __init__, checkversion, clear, getf, mktmp, open, purge, putf, setduration, setlocation, validate

Class Variables [hide private]
int protocol = 2
The pickling protocol.

Inherited from FileCache: fnprefix, units

Instance Variables [hide private]

Inherited from FileCache: duration, location

Method Details [hide private]

fnsuffix(self)

source code 

Get the file name suffix

Returns: str
The suffix
Overrides: FileCache.fnsuffix
(inherited documentation)

get(self, id)

source code 

Get a object from the cache by ID.

Parameters:
  • id - The object ID.
Returns: any
The object, else None
Overrides: Cache.get
(inherited documentation)

put(self, id, object)

source code 

Put a object into the cache.

Parameters:
  • id - The object ID.
  • object - The object to add.
Overrides: Cache.put
(inherited documentation)