Skip to content
Snippets Groups Projects

ENH: add entity getters and cached functions

Merged Henrik tom Wörden requested to merge f-entity-getters into dev
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -51,6 +51,8 @@ have entities on hand from previous queries that you want to add.
# If you now use IDs that were in items, they are taken from the cache.
e1 = cached_get_entity_by(eid=10001)
For the cached entity getter functions (``cached_get_entity_by``) you need to set ``unique=True``.
When filling the cache with Entity objects for ``cached_get_entity_by``, you need to set
``unique=True``, whereas the cache for ``cached_query`` should be filled with Container object and
``unique=False``.
Loading