# Class DefaultParcedProcessCache OptimaJet.Workflow.Core.Cache.DefaultParcedProcessCache Default in-memory implementation of [IParsedProcessCache](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Cache/IParsedProcessCache/) for parsed [ProcessDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessDefinition/) objects. Namespace: [OptimaJet.Workflow.Core.Cache](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Cache/) ```csharp public sealed class DefaultParcedProcessCache : IParsedProcessCache ``` ## Type Hierarchy - DefaultParcedProcessCache Current type - Implemented interfaces - [IParsedProcessCache](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Cache/IParsedProcessCache/) ## Methods `public void Clear()` Clears all cached process definitions. `public bool RemoveProcessDefinition(Guid schemeId)` Removes a cached process definition by scheme identifier. ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemeId` | `Guid` | The identifier of the scheme whose cached process definition should be removed. | ### Returns | Type | Description | | --- | --- | | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) when a cached process definition was removed; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | `public ProcessDefinition GetProcessDefinitionBySchemeId(Guid schemeId)` Gets a cached process definition by scheme identifier. ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemeId` | `Guid` | The identifier of the scheme for which to retrieve a process definition. | ### Returns | Type | Description | | --- | --- | | `ProcessDefinition` | The cached process definition if one exists for `schemeId`; otherwise, [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null). | `public void AddProcessDefinition(Guid schemeId, ProcessDefinition processDefinition)` Adds or updates a process definition in the cache using the scheme identifier as key. ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemeId` | `Guid` | The identifier of the scheme. | | `processDefinition` | `ProcessDefinition` | The [ProcessDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessDefinition/) to store in the cache. | ### Exceptions | Type | Description | | --- | --- | | `LicenseException` | Thrown when adding the definition would exceed the license limit for the number of unique scheme names. | [Previous WorkflowBuilder](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Builder/WorkflowBuilder-TSchemeMedium/) [Next IParsedProcessCache](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Cache/IParsedProcessCache/)