Skip to content

Rename Cacheables to Cacheable; storage adapters to buckets#14

Merged
grischaerbe merged 1 commit into
nextfrom
grischaerbe/rename-cacheables
Apr 28, 2026
Merged

Rename Cacheables to Cacheable; storage adapters to buckets#14
grischaerbe merged 1 commit into
nextfrom
grischaerbe/rename-cacheables

Conversation

@grischaerbe
Copy link
Copy Markdown
Owner

Summary

  • Renames the main class CacheablesCacheable, the IStorageAdapter interface → IBucket, the MemoryAdapterMemoryBucket, and the adapters constructor option → buckets. The CacheablesOptions type becomes CacheableOptions.
  • Moves src/adapters/src/buckets/ (and the equivalent test directory); updates the engine internals, error messages, README, and v3 → v4 migration notes.
  • Behavior, contract, and policies are unchanged — this is a pure rename to position storage layers as buckets and reserve the singular Cacheable name for the cache itself.

Test plan

  • npm run typecheck
  • npm run eslint
  • npm test (53/53 passing)

🤖 Generated with Claude Code

Renames the main class from `Cacheables` to `Cacheable` and reframes the
storage-adapter concept as buckets — `IStorageAdapter` becomes `IBucket`,
`MemoryAdapter` becomes `MemoryBucket`, the `adapters` constructor option
becomes `buckets`, and the `CacheablesOptions` type becomes
`CacheableOptions`. Files moved from `src/adapters/` to `src/buckets/`
(and similarly under `tests/`); README and v3 → v4 migration notes
updated accordingly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant