Skip to main content
Deno 2 is finally here 🎉️
Learn more
class BundleHashCacheService
import { BundleHashCacheService } from "https://deno.land/x/sptaki@1.2.0/services/cache/BundleHashCacheService.d.ts";

Constructors

new
BundleHashCacheService(
vfs: VFS,
hashUtil: HashUtil,
jsonUtil: JsonUtil,
logger: ILogger,
)

Properties

protected
readonly
bundleHashCachePath: string
protected
bundleHashes: Record<string, number>
protected
hashUtil: HashUtil
protected
jsonUtil: JsonUtil
protected
logger: ILogger
protected
vfs: VFS

Methods

calculateAndMatchHash(bundlePath: string): boolean
calculateAndStoreHash(bundlePath: string): void
getStoredValue(key: string): number
matchWithStoredHash(bundlePath: string, hash: number): boolean
storeValue(key: string, value: number): void