buildgrid.server.actioncache.instance module

Action Cache

Implements an in-memory action Cache

class buildgrid.server.actioncache.instance.ActionCache(storage, max_cached_refs, allow_updates=True, cache_failed_actions=True)

Bases: buildgrid.server.referencestorage.storage.ReferenceCache

property instance_name
hash_type()
register_instance_with_server(instance_name, server)

Names and registers the action-cache instance with a given server.

get_action_result(action_digest)

Retrieves the cached result for an action.

update_action_result(action_digest, action_result)

Stores in cache a result for an action.