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

Class Cache

source code

Known Subclasses:

An object object cache.

Instance Methods [hide private]
any
get(self, id)
Get a object from the cache by ID.
source code
any
getf(self, id)
Get a object from the cache by ID.
source code
 
put(self, id, object)
Put a object into the cache.
source code
 
putf(self, id, fp)
Write a fp into the cache.
source code
 
purge(self, id)
Purge a object from the cache by id.
source code
 
clear(self)
Clear all objects from the cache.
source code
Method Details [hide private]

get(self, id)

source code 

Get a object from the cache by ID.

Parameters:
  • id (str) - The object ID.
Returns: any
The object, else None

getf(self, id)

source code 

Get a object from the cache by ID.

Parameters:
  • id (str) - The object ID.
Returns: any
The object, else None

put(self, id, object)

source code 

Put a object into the cache.

Parameters:
  • id (str) - The object ID.
  • object (any) - The object to add.

putf(self, id, fp)

source code 

Write a fp into the cache.

Parameters:
  • id (str) - The object ID.
  • fp (file-like object.) - File pointer.

purge(self, id)

source code 

Purge a object from the cache by id.

Parameters:
  • id (str) - A object ID.