2
using System.Collections;
3
using System.Collections.Generic;
5
namespace ServiceStack.CacheAccess
7
public interface IPersistenceProviderCache
9
TEntity GetById<TEntity>(object entityId)
10
where TEntity : class, new();
12
List<TEntity> GetByIds<TEntity>(ICollection entityIds)
13
where TEntity : class, new();
15
void SetCache<TEntity>(TEntity entity)
16
where TEntity : class, new();
18
void Store<TEntity>(TEntity entity)
19
where TEntity : class, new();
21
void StoreAll<TEntity>(params TEntity[] entities)
22
where TEntity : class, new();
24
void ClearAll<TEntity>(ICollection entityIds)
25
where TEntity : class, new();
27
void Clear<TEntity>(params object[] entityIds)
28
where TEntity : class, new();
b'\\ No newline at end of file'