Package schrodinger :: Package job :: Module hunt_cache :: Class HuntCache
[hide private]
[frames] | no frames]

Class HuntCache

object --+
         |
        HuntCache

A HuntCache object represents a particular "hunt cache" a file that stores hunt results for re-use.


Version: 1.02

Instance Methods [hide private]
 
__init__(self, debug=False)
x.__init__(...) initializes x; see help(type(x)) for signature
 
version(self)
 
initialize_cached_data(self)
 
_load_cache(self)
 
reset(self)
Delete the exsiting cache file (if any)
 
get(self, cache_key, schrod_execs)
Returns the cached results (if any) for a particular 'hunt' request, described by the parameters in the given cache key.
 
_initialize_cache(self)
Creates a new cache file.
 
save(self, cache_key, hunted_execs)
Adds the given search result (hunted_execs) to the cache.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, debug=False)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

get(self, cache_key, schrod_execs)

 

Returns the cached results (if any) for a particular 'hunt' request, described by the parameters in the given cache key.

Parameters:
  • cache_key - the parameters for a particular 'hunt' search.
  • schrod_execs - the exec directories found by this hunt search.

save(self, cache_key, hunted_execs)

 

Adds the given search result (hunted_execs) to the cache.

Parameters:
  • cache_key - the parameters for this 'hunt' request.
  • hunted_execs - the exec directories returned by this search.