Module io.ebean.api

Class TenantAwareCache

  • All Implemented Interfaces:
    ServerCache

    public final class TenantAwareCache
    extends Object
    implements ServerCache
    A ServerCache proxy that is tenant aware.
    • Constructor Detail

      • TenantAwareCache

        public TenantAwareCache​(ServerCache delegate,
                                TenantAwareKey tenantAwareKey)
        Create given the TenantAwareKey and delegate cache to proxy to.
        Parameters:
        delegate - The cache to proxy to
        tenantAwareKey - Provides tenant aware keys to use in the cache