beem.blockchainobject

class beem.blockchainobject.BlockchainObject(data, klass=None, space_id=1, object_id=None, lazy=False, use_cache=True, id_item=None, blockchain_instance=None, *args, **kwargs)

Bases: dict

cache()
static clear_cache()
clear_cache_from_expired_items()
get_cache_auto_clean()
get_cache_expiration()
getcache(id)
iscached(id)
items() → a set-like object providing a view on D's items
json()
set_cache_auto_clean(auto_clean)
set_cache_expiration(expiration)
space_id = 1
test_valid_objectid(i)
testid(id)
type_id = None
type_ids = []
class beem.blockchainobject.ObjectCache(initial_data={}, default_expiration=10, auto_clean=True)

Bases: dict

clear_expired_items()
get(key, default)

Return the value for key if key is in the dictionary, else default.

set_expiration(expiration)

Set new default expiration time in seconds (default: 10s)