Download the PHP package cachly-dev/sdk without Composer
On this page you can find all versions of the php package cachly-dev/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cachly-dev/sdk
More information about cachly-dev/sdk
Files in cachly-dev/sdk
Package sdk
Short Description Official PHP SDK for cachly.dev – Managed Valkey/Redis cache with semantic AI caching
License MIT
Homepage https://cachly.dev
Informations about the package sdk
cachly PHP SDK
Official PHP SDK for cachly.dev – Managed Valkey/Redis cache.
GDPR-compliant · German servers · Live in 30 seconds
Installation
Requires PHP ≥ 8.1 and
predis/predis ^2.2.
Quick Start
Get-or-Set Pattern
Semantic AI Cache (Speed / Business tiers)
Cache LLM responses by meaning, not just exact key. Cut OpenAI costs by 60%.
Laravel Integration
API Reference
| Method | Description |
|---|---|
get(string $key) |
Get a value (null if not found) |
set(string $key, mixed $value, ?int $ttl) |
Set a value |
del(string ...$keys): int |
Delete keys, returns count |
exists(string $key): bool |
Check existence |
expire(string $key, int $seconds) |
Update TTL |
incr(string $key): int |
Atomic increment |
getOrSet(string $key, callable $fn, ?int $ttl) |
Get-or-set pattern |
semantic(): SemanticCache |
Access semantic cache helper |
raw(): PredisClient |
Direct Predis access |
Batch API — Multiple Ops in One Round-Trip
Bundle GET/SET/DEL/EXISTS/TTL operations into one HTTP request or Predis pipeline.
Environment Variables
Find both values in your cachly.dev dashboard.
AI Dev Brain — Persistent Memory for Your Coding Assistant
cachly ships a 30-tool MCP server that gives Claude Code, Cursor, GitHub Copilot, and Windsurf a persistent memory across sessions.
session_start(instance_id, focus) returns a full briefing in one call: last session summary, relevant lessons, open failures, brain health.
→ Full docs: cachly.dev/docs/ai-memory
Links
MIT © cachly.dev