This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Add cache:start and cache:stop - #305
Closed
joetannenbaum wants to merge 2 commits into
Closed
joetannenbaum wants to merge 2 commits into
joetannenbaum wants to merge 2 commits into
Conversation
The API can now start and stop a Laravel Valkey cache
(POST /caches/{cache}/start and /stop). Both commands resolve the cache
like cache:get and output the updated cache with --json. Stopping cuts
environments off from the cache, so cache:stop confirms and needs --force
when non-interactive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T1Sq4Y2hkEm7aPHvpU9eP2
A long label overflows the confirm box on narrower terminals. The README already explains what stopping does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T1Sq4Y2hkEm7aPHvpU9eP2
joetannenbaum
force-pushed
the
api-sync/caches
branch
from
November 25, 2026 18:09
a1d7bfa to
1b13b45
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
cache:startandcache:stopfor the two cache endpoints in the current API spec that the CLI didn't cover.Findings
POST /caches/{cache}/startCacheResourcePOST /caches/{cache}/stopCacheResourceNeither takes a request body. Both need the
cache.editpermission.Changes
StartCacheRequest/StopCacheRequest, plusstart()andstop()onCachesResource.cache:start {cache?}andcache:stop {cache?} {--force}. They resolve the cache the waycache:getdoes (ID or name, picker when interactive) and print the returned cache with--json, using the sameCacheDTO ascache:get.cache:stopgoes throughconfirmDestructive()and needs--forcewhen non-interactive.cache:startdoesn't confirm.Tests
tests/Feature/CacheStartStopTest.phpcovers the request each command sends, the--jsonshape, and thatcache:stoprefuses to run headlessly without--force. The full suite (PromptFallbackTestskipped locally), PHPStan and Pint pass, re-run after rebasing on the currentmain.Demo
This session could not embed the GIFs inline: image markdown was stripped on its way to GitHub, so they are plain links. Add a
!before each to make it play inline.cloud cache:start
cache:startwith no argument: pick a stopped cache, then it starts.cloud cache:stop
cache:stopwith no argument: pick a cache, confirm, then it stops.Generated by Claude Code