Class BaseNoSqlDao

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    BaseKdDao, BaseKvDao

    public class BaseNoSqlDao
    extends BaseDao
    Base class for NoSQL-based DAOs.
    Since:
    0.10.0
    Author:
    Thanh Nguyen
    • Constructor Detail

      • BaseNoSqlDao

        public BaseNoSqlDao()
    • Method Detail

      • getCacheName

        public java.lang.String getCacheName()
        Name of the cache this DAO uses to cache data.
        Returns:
      • setCacheName

        public BaseNoSqlDao setCacheName​(java.lang.String cacheName)
        Name of the cache this DAO uses to cache data.
        Parameters:
        cacheName -
        Returns:
      • calcCacheKey

        protected java.lang.String calcCacheKey​(java.lang.String spaceId,
                                                java.lang.String key)
        Calculate cache key for an entry.
        Parameters:
        spaceId -
        key -
        Returns:
      • invalidateCacheEntry

        protected void invalidateCacheEntry​(java.lang.String spaceId,
                                            java.lang.String key)
        Invalidate a cache entry.
        Parameters:
        spaceId -
        key -
      • invalidateCacheEntry

        protected void invalidateCacheEntry​(java.lang.String spaceId,
                                            java.lang.String key,
                                            java.lang.Object data)
        Invalidate a cache entry due to updated content.
        Parameters:
        spaceId -
        key -
        data -