Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IShortTermCacheManager.cs

namespace Nop.Core.Caching;

/// 
/// Represents a manager for caching during an HTTP request (short term caching)
/// 
public partial interface IShortTermCacheManager : ICacheKeyService
{
    /// 
    /// Remove items by cache key prefix
    /// 
    /// Cache key prefix
    /// Parameters to create cache key prefix
    void RemoveByPrefix(string prefix, params object[] prefixParameters);

    /// 
    /// Remove the value with the specified key from the cache
    /// 
    /// Cache key
    /// Parameters to create cache key
    void Remove(string cacheKey, params object[] cacheKeyParameters);

    /// 
    /// Get a cached item. If it's not in the cache yet, then load and cache it
    /// 
    /// Type of cached item
    /// /// Function to load item if it's not in the cache yet
    /// Initial cache key
    /// Parameters to create cache key
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the cached value associated with the specified key
    /// 
    Task GetAsync(Func> acquire, CacheKey cacheKey, params object[] cacheKeyParameters);
}