Skip to main content

deploy.memoryscriptdeploymentcache

Home > @blaze-cardano/deploy > MemoryScriptDeploymentCache

MemoryScriptDeploymentCache class

In-memory deployment cache implementation for scripts and CI examples.

Signature:

export declare class MemoryScriptDeploymentCache implements ScriptDeploymentCache 

Implements: ScriptDeploymentCache

Constructors

Constructor

Modifiers

Description

(constructor)(records)

Create a cache, optionally preloaded with records.

Methods

Method

Modifiers

Description

findByName(name)

Find the active record for a target name, preferring the highest non-superseded version.

findByScriptHash(scriptHash)

Find a cache record by script hash.

put(record)

Store a deployment record by name, version, and script hash.

records()

Return all cached deployment records.

remove(name)

Remove all records for a deployment target name.

snapshot(manifestHash)

Serialize the cache into a snapshot suitable for JSON artifacts.