Skip to content

feat: add surreal cache store alias#124

Merged
ibourgeois merged 2 commits intomainfrom
codex/feat-26-surreal-cache
Mar 25, 2026
Merged

feat: add surreal cache store alias#124
ibourgeois merged 2 commits intomainfrom
codex/feat-26-surreal-cache

Conversation

@ibourgeois
Copy link
Contributor

Closes #26.

Summary

  • add an explicit surreal cache store alias backed by Laravel's database cache driver on the Surreal connection
  • document how to enable Surreal-backed cache storage and its current limiter caveat
  • expand the Surreal cache integration test to cover a broader set of core cache operations

Verification

  • vendor/bin/pint --dirty --format agent
  • php artisan test --compact tests/Feature/DatabaseCacheOnSurrealTest.php

Copilot AI review requested due to automatic review settings March 25, 2026 16:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an explicit surreal cache store alias (implemented via Laravel’s built-in database cache driver configured to use the surreal DB connection), documents how to enable Surreal-backed caching, and broadens the existing integration test coverage for cache operations against a real Surreal runtime.

Changes:

  • Add cache.stores.surreal configuration as a first-class cache store alias.
  • Update the Surreal cache integration test to use the surreal store and cover more core cache operations.
  • Document Surreal-backed cache configuration and the current limiter/atomic semantics caveat.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tests/Feature/DatabaseCacheOnSurrealTest.php Switches the test to the new surreal cache store and expands covered cache operations.
config/cache.php Introduces the surreal cache store alias backed by the database cache driver on the Surreal connection.
README.md Documents enabling Surreal-backed cache storage and notes limiter caveats.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ibourgeois ibourgeois merged commit 7b4fa5e into main Mar 25, 2026
1 check passed
@ibourgeois ibourgeois deleted the codex/feat-26-surreal-cache branch March 25, 2026 17:16
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.

feat: add a SurrealDB cache store driver

2 participants