DotPrompt.Cache.Structural (anantha_dot_prompt v1.1.0)

Copy Markdown

ETS-based cache for structural skeleton with precise invalidation support.

Summary

Functions

Returns a specification to start this module under a supervisor.

Clears all cached objects.

Returns the current size of the cache.

Gets cached skeleton and metadata for the given key.

Selectively invalidates all entries matching the given prompt name.

Stores a value in the cache.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear()

Clears all cached objects.

count()

Returns the current size of the cache.

get(key)

Gets cached skeleton and metadata for the given key.

init()

invalidate_name(name)

Selectively invalidates all entries matching the given prompt name.

put(key, value)

Stores a value in the cache.

start_link(_)