univention.ldap_cache.cache.backend package#

class univention.ldap_cache.cache.backend.Caches(db_directory: str = '/usr/share/univention-group-membership-cache/caches')[source]#

Bases: object

get_shards_for_query(query: str) list[Shard][source]#
get_sub_cache(name: str) Any[source]#
add(klass: type) None[source]#
class univention.ldap_cache.cache.backend.Shard(cache: Any)[source]#

Bases: object

ldap_filter: str | None = None#
db_name: str | None = None#
single_value = False#
key = 'entryUUID'#
value: str | None = None#
attributes: list[str] = []#
reverse = False#
rm_object(obj: tuple[str, Mapping[str, Sequence[bytes]]]) None[source]#
add_object(obj: tuple[str, Mapping[str, Sequence[bytes]]]) None[source]#
get_values(obj: tuple[str, Mapping[str, Sequence[bytes]]]) Any[source]#
get_key(obj: tuple[str, Mapping[str, Sequence[bytes]]]) Any[source]#
class univention.ldap_cache.cache.backend.LdapCache(name: str, single_value: bool, reverse: bool)[source]#

Bases: object

add_shard(shard_class: type[Shard]) None[source]#

Submodules#

univention.ldap_cache.cache.backend.gdbm_cache module#

class univention.ldap_cache.cache.backend.gdbm_cache.GdbmCaches(db_directory: str = '/usr/share/univention-group-membership-cache/caches')[source]#

Bases: Caches

class univention.ldap_cache.cache.backend.gdbm_cache.GdbmCache(*args: Any, **kwargs: Any)[source]#

Bases: LdapCache

writing(writer: Any | None = None) Iterator[Any][source]#
reading(writer: Any | None = None) Iterator[Any]#
save(key: str, values: list[str]) None[source]#
clear() None[source]#
cleanup() None[source]#
delete(key: str, values: list[str], writer: Any = None) None[source]#
keys() Iterator[str][source]#
get(key: str, reader: Any = None) Any[source]#
load() dict[str, Any][source]#
class univention.ldap_cache.cache.backend.gdbm_cache.GdbmShard(cache: Any)[source]#

Bases: Shard

key = 'dn'#

univention.ldap_cache.cache.backend.lmdb_cache module#

class univention.ldap_cache.cache.backend.lmdb_cache.LmdbCaches(*args: Any, **kwargs: Any)[source]#

Bases: Caches

class univention.ldap_cache.cache.backend.lmdb_cache.LmdbCache(name: str, single_value: bool, reverse: bool)[source]#

Bases: LdapCache

writing(writer: Any | None = None) Iterator[Any][source]#
save(key: str, values: list[str]) None[source]#
clear() None[source]#
cleanup() None[source]#
delete(key: str, writer: Any = None) None[source]#
reading() Iterator[Any][source]#
get(key: str) Any[source]#
load() dict[str, Any][source]#
class univention.ldap_cache.cache.backend.lmdb_cache.LmdbShard(cache: Any)[source]#

Bases: Shard

key = 'entryUUID'#