Documentation
¶
Overview ¶
Package cache defines the canonical descriptor for generated cache boundaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cacheable ¶
func Cacheable() sdk.Definition
Cacheable marks a typed GET controller method or an interface-bound managed service method whose successful response may be cached under a stable name.
Spice generates deterministic key material from the validated request and keeps the cache implementation explicit through dependency injection. Errors and unauthorized responses are never cached.
// @import { Cacheable } from "github.com/spice-framework/spice/annotation/cache"
// @Cacheable(name="orders.by-id")
func CacheableHandler ¶
CacheableHandler contributes one named generated cache boundary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.