Class CmsDriverManager.ResourceOUCacheKey

java.lang.Object
org.opencms.db.CmsDriverManager.ResourceOUCacheKey
Enclosing class:
CmsDriverManager

public static class CmsDriverManager.ResourceOUCacheKey extends Object
Special key class for caching the resource OU data with a Guava LoadingCache.

In principle, the actual cache key is just the current project, but because of how cache loaders work, the key must contain everything that varies between calls and is required to load the value. So we also store the DB context for use by the cache loader. The project (offline/online) must still be stored, because the DB context gets invalidated eventually, i.e. its project id gets nulled.