---
title: "Interface ICache&lt;T&gt; | Customer&#x27;s Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.Caching/ICache_T_/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
    entity_id: "https://customerscanvas.com/glossary/customers-canvas-on-premises#software-application"
  - product: "Design Atoms .NET"
    versions: ["7.4"]
    entity_id: "https://customerscanvas.com/glossary/design-atoms-net#software-application"
---

# Interface ICache<T>

**Applies to:** Customer's Canvas On-Premises; Design Atoms .NET 7.4

> Interface ICache in the Aurigma.DesignAtoms.Common.Caching namespace.

# Interface ICache&lt;T&gt;

**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 ICache<T> : IDisposable
```

## Inherited Members

* `System.IDisposable.Dispose`

## Methods

### Add

```csharp
bool Add(string key, T value)
```

#### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *key* |  |
| `<T>` | *value* |  |

#### Returns

`System.Boolean`

#### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### Set

```csharp
void Set(string key, T value)
```

#### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *key* |  |
| `<T>` | *value* |  |

#### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### Get

```csharp
T Get(string key)
```

#### Parameters

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

#### Returns

`<T>`

#### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### Remove

```csharp
void Remove(string key)
```

#### Parameters

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

#### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### ClearAll

```csharp
void ClearAll()
```

#### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |
