graphenestorage.ram module

class graphenestorage.ram.InRamStore(*args, **kwargs)

Bases: graphenestorage.interfaces.StoreInterface

The InRamStore inherits graphenestore.interfaces.StoreInterface and extends it by two further calls for wipe and delete.

The store is syntactically equivalent to a regular dictionary.

Warning

If you are trying to obtain a value for a key that does not exist in the store, the library will NOT raise but return a None value. This represents the biggest difference to a regular dict class.

delete(key)

Delete a key from the store

wipe()

Wipe the store