Skip to content

Class: YangCache ​

Defined in: netconf/src/yang/cache.ts:16

A store of fetched YANG module text and compiled schemas that several clients can share, given as connect({ yang: { cache } }). A service with many sessions to the same kind of device then fetches and compiles each module set once. See Where the schema comes from.

Constructors ​

Constructor ​

ts
new YangCache(): YangCache;

Returns ​

YangCache

Accessors ​

size ​

Get Signature ​

ts
get size(): number;

Defined in: netconf/src/yang/cache.ts:23

How many compiled module sets the cache holds.

Returns ​

number

Methods ​

clear() ​

ts
clear(): void;

Defined in: netconf/src/yang/cache.ts:28

Forget everything: later reads fetch and compile again.

Returns ​

void

Released under the MIT Licence.