# Interface IParsedProcessCache OptimaJet.Workflow.Core.Cache.IParsedProcessCache Provides access to a cache of parsed [ProcessDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessDefinition/) instances keyed by scheme identifier. Namespace: [OptimaJet.Workflow.Core.Cache](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Cache/) ```csharp public interface IParsedProcessCache ``` ## Type Hierarchy - IParsedProcessCache Current type - Implementing types - [DefaultParcedProcessCache](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Cache/DefaultParcedProcessCache/) ## Methods `void Clear()` Clears all cached process definitions. `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). | `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). | `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. | [Previous DefaultParcedProcessCache](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Cache/DefaultParcedProcessCache/) [Next CodeActionsCompiller](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/CodeActionsCompiller/)