Uniform, storage-agnostic entry points for the optional storage capability interfaces (see ISupportsBulkRead), falling back to a per-key loop over the base IStorage contract when the underlying storage does not implement the capability.
Definition
Namespace:Telerik.Reporting.Cache.Interfaces
Assembly:Telerik.Reporting.dll
Syntax:
public static class StorageCapabilityExtensions
Inheritance: objectStorageCapabilityExtensions
Methods
Retrieves the byte array values stored under each of the given keys, using ISupportsBulkRead in a single call when the storage implements it, otherwise looping GetBytes(string) once per key.
public static IDictionary<string, byte[]> GetBytes(this IStorage storage, IEnumerable<string> keys)
The storage to read from.
keysIEnumerable<string>The keys to retrieve. May contain keys that do not exist in the storage.
Returns:IDictionary<string, byte[]>
A dictionary with one entry per requested key (duplicates collapse to a single entry). A key with no stored value is present in the result with a null value.