packages feed

shikumi-cache-redis 0.1.2.3 → 0.1.3.0

raw patch · 3 files changed

+17/−9 lines, 3 filesdep ~baikaidep ~shikumidep ~shikumi-cachePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: baikai, shikumi, shikumi-cache, shikumi-cache-redis

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -2,6 +2,12 @@  ## Unreleased +## 0.1.3.0 — 2026-09-08++- Raise the internal `shikumi-cache` bound to `^>=0.2.0.0` for the breaking cache release.++- Upgrade the dependency on `mori://shinzui/baikai/packages/baikai` to `>=0.7.0.0 && <0.8`.+ ## 0.1.2.3 — 2026-08-29  ### Changed
shikumi-cache-redis.cabal view
@@ -1,6 +1,6 @@ cabal-version:   3.4 name:            shikumi-cache-redis-version:         0.1.2.3+version:         0.1.3.0 synopsis:        Redis-backed shikumi cache (EP-6) category:        AI description:@@ -41,7 +41,7 @@     , bytestring     >=0.11     && <0.13     , effectful      >=2.5      && <2.7     , hedis          >=0.15     && <0.17-    , shikumi-cache  ^>=0.1.2.0+    , shikumi-cache  ^>=0.2.0.0     , text           ^>=2.1  test-suite shikumi-cache-redis-test@@ -51,16 +51,16 @@   main-is:        Main.hs   ghc-options:    -threaded -with-rtsopts=-N   build-depends:-    , baikai               >=0.6      && <0.7+    , baikai               >=0.7.0.0  && <0.8     , base     , bytestring     , effectful     , generic-lens     , hedis     , lens-    , shikumi              ^>=0.3.0.0-    , shikumi-cache        ^>=0.1.2.0-    , shikumi-cache-redis  ^>=0.1.2.0+    , shikumi              ^>=0.4.0.0+    , shikumi-cache        ^>=0.2.0.0+    , shikumi-cache-redis  ^>=0.1.3.0     , tasty     , tasty-hunit     , text
test/Main.hs view
@@ -24,6 +24,7 @@ import Database.Redis qualified as R import Effectful (Eff, IOE, liftIO, runEff, type (:>)) import Effectful.Dispatch.Dynamic (interpret)+import Effectful.Error.Static (runErrorNoCallStack) import Shikumi.Cache   ( CacheKey (unCacheKey),     CachedResponse (..),@@ -41,6 +42,7 @@     runCacheRedis,   ) import Shikumi.Effect.Time (runTime)+import Shikumi.Error (ShikumiError (..)) import Shikumi.LLM (LLM (..), complete) import System.Environment (lookupEnv) import System.Exit (exitFailure, exitSuccess)@@ -129,8 +131,8 @@     [ testCase "memoize: first request MISS (provider once), repeat is a Redis HIT" $ do         -- Two identical requests in one run: provider hit exactly once.         refA <- newIORef 0-        (r1, r2) <--          runEff . runTime . runCacheRedis cache . runCountingLLM refA stubResponse . cachedLLM $ do+        Right (r1, r2) <-+          runEff . runErrorNoCallStack @ShikumiError . runTime . runCacheRedis cache . runCountingLLM refA stubResponse . cachedLLM $ do             a <- complete fixModel fixCtx fixOpts             b <- complete fixModel fixCtx fixOpts             pure (a, b)@@ -140,7 +142,7 @@         -- A fresh run (fresh counter) now finds the entry already in Redis → HIT.         refB <- newIORef 0         _ <--          runEff . runTime . runCacheRedis cache . runCountingLLM refB stubResponse . cachedLLM $+          runEff . runErrorNoCallStack @ShikumiError . runTime . runCacheRedis cache . runCountingLLM refB stubResponse . cachedLLM $             complete fixModel fixCtx fixOpts         nB <- readIORef refB         nB @?= 0,