---
title: "Interface IMemoryCachingService | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.Caching/IMemoryCachingService/"
---

# Interface IMemoryCachingService

> `Aurigma.DesignAtoms.Common.Caching.ICache<<T>>`

###### **Namespace**: [Aurigma.DesignAtoms.Common.Caching](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.Caching.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public interface IMemoryCachingService
```

## Methods

### GetCache&lt;T&gt;

```csharp
ICache<T> GetCache<T>(string name)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *name* |  |

##### Returns

### GetCache&lt;T&gt;

```csharp
ICache<T> GetCache<T>(string name, CacheItemPolicy defaultPolicy)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *name* |  |
| `System.Runtime.Caching.CacheItemPolicy` | *defaultPolicy* |  |

##### Returns

`Aurigma.DesignAtoms.Common.Caching.ICache<<T>>`
