HfHub.Cache.Server (HfHub v0.3.0)

Copy Markdown View Source

GenServer for managing cache state and operations.

This server maintains cache metadata, handles concurrent access, and implements LRU eviction policies.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the cache server.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

Starts the cache server.

Options

Examples

{:ok, pid} = HfHub.Cache.Server.start_link()