arweave-account
Version:
Account protocol library on Arweave by Metaweave.xyz
15 lines (14 loc) • 492 B
TypeScript
import CacheAPI from './CacheAPI';
import { ArAccount } from '../types';
export default class Cache implements CacheAPI {
private cacheObj;
private size;
private expirationTime;
constructor(env: string | CacheAPI, size: number, expirationTime: number);
private select;
get: (addr: string) => ArAccount | undefined;
find: (uniqueHandle: string) => ArAccount | null | undefined;
hydrate: (account: ArAccount) => any;
reset: () => any;
dump: () => any;
}