CacheService<D extends Object, P extends Object>.withSyncDelegate constructor

CacheService<D extends Object, P extends Object>.withSyncDelegate(
  1. SyncCacheDelegate<D, P> delegate
)

Creates a SyncCacheDelegate cache service delegate Delegate that synchronously performs caching actions

Implementation

factory CacheService.withSyncDelegate(SyncCacheDelegate<D, P> delegate) {
  return AsyncDelegateCacheService(AsyncCacheDelegate(delegate));
}