LDAPCache#
- class gafaelfawr.cache.LDAPCache(content)#
Bases:
PerUserCache
,Generic
[S
]A cache of LDAP data.
Methods Summary
get
(username)Retrieve data from the cache.
Initialize the cache.
invalidate
(username)Invalidate any cached data for a user.
store
(username, data)Store data in the cache.
Methods Documentation
- get(username)#
Retrieve data from the cache.
- Parameters:
username (
str
) – Username for which to retrieve data.- Returns:
The cached data or None if there is no data in the cache.
- Return type:
Any or None
- invalidate(username)#
Invalidate any cached data for a user.