Superintelligence.Cache (superintelligence v0.1.0)

Distributed cache implementation using Nebulex with advanced features:

  • Multi-level caching (L1: Local, L2: Distributed)
  • Automatic cache warming
  • Cache invalidation strategies
  • Telemetry integration
  • Decorators for easy caching

Summary

Functions

bulk_load(keys, loader_fn)

get_many(keys)

get_or_compute(key, compute_fn, opts \\ [])

memoize(fun, args, opts \\ [])

model(name \\ __MODULE__)

A convenience function to get the cache model.

put_many(entries)

with_fallback(key, primary_fn, fallback_fn, opts \\ [])