Class PropCacheCaffeineImpl

    • Method Detail

      • getIfCached

        public @Nullable VersionedProperties getIfCached​(PropStoreKey<?> propStoreKey)
        Retrieve the version properties if present in the cache, otherwise return null. This prevents caching the properties and should be used when properties will be updated and then committed to the backend store. The process that is updating the values may not need them for additional processing so there is no reason to store them in the cache at this time. If they are used, a normal cache get will load the property into the cache.
        Parameters:
        propStoreKey - the property id
        Returns:
        the version properties if cached, otherwise return null.