Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Smart Cache Laravel Package

iazaran/smart-cache

Drop-in replacement for Laravel’s Cache facade that automatically compresses and chunks large values, deduplicates unchanged writes, self-heals corrupted entries, and performs cost-aware eviction. Works with existing code (PHP 8.1+, Laravel 8–13).

View on GitHub
Deep Wiki
Context7
1.13.1

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.13.0...1.13.1

1.12.2

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.12.1...1.12.2

1.12.0
1.10.0

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.9.4...1.10.0

1.9.4

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.9.3...1.9.4

1.9.1

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.9.0...1.9.1

1.9.0

What's Changed

Bug Fixes

  • Fixed duplicate key/tag resolution in model cache invalidation
  • Fixed null value sentinel collision with user data

Performance

  • Optimized JSON serialization validation check
  • Added persistent access frequency tracking for adaptive compression
  • Improved cost metadata persistence reliability

Features

  • Write Deduplication (Cache DNA) — skips redundant writes when content is unchanged
  • Conditional Caching (rememberIf) — caches values only when a condition is met
  • Self-Healing Cache — auto-evicts corrupted entries for transparent regeneration

Documentation & SEO

  • Added Open Graph, Twitter Card, and JSON-LD structured data
  • Updated README with badges, comparison table, and feature documentation
  • Updated sitemap

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.8.0...1.9.0

1.8.0

What's Changed

✨ New Features

  • Cost-Aware Caching — GreedyDual-inspired scoring that prioritizes expensive-to-compute items in cache
  • getRaw() method — Retrieve raw cached values without deserialization overhead
  • flush() method — Clear all cache entries
  • Null value support — Properly cache and retrieve null values

🔧 Improvements

  • Lazy loading for cache store initialization
  • Atomic increment operations in RateLimiter
  • TTL jitter to prevent cache stampedes
  • Optimized shouldApply() in strategies to avoid double serialization
  • Error logging on decryption failures in EncryptionStrategy
  • Accurate optimization statistics using getRaw() in health checks

🧪 Tests

  • Added tests for null support, flush, getRaw, and cost-aware caching

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.7.0...1.8.0

1.7.0

What's Changed

SmartCache now implements Laravel's Repository interface, allowing store() to return a SmartCache instance that maintains all optimizations while being fully compatible with Laravel's cache API.

Changes SmartCache implements Illuminate\Contracts\Cache\Repository store() returns SmartCache instance with preserved optimizations Added repository() for raw cache access when needed Zero breaking changes for existing users Benefits ✅ Full Laravel Cache drop-in replacement ✅ Works with Repository type hints ✅ All optimizations preserved across drivers ✅ Backward compatible

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.6.0...1.7.0

1.6.0

What's Changed

New Features: Cache Warming Command (php artisan smart-cache:warm) Circuit Breaker pattern for cache backend failures Rate Limiting with stampede protection Cache Prefixing/Namespacing TTL Jitter to prevent thundering herd Encryption Strategy for sensitive data Cache Statistics Dashboard (web routes) Async Background Refresh Job

Improvements: Fixed managed keys persistence with dirty flag (batch saves) Added orphan chunk cleanup command Fixed access frequency tracking for adaptive compression Fixed MemoizedCacheDriver memory leak with LRU eviction Added size threshold to SmartSerializationStrategy Improved code quality with global namespace prefixes

Compatibility: Added PHP 8.4 support Verified compatibility: PHP 8.1-8.4, Laravel 8-12 Updated CI matrix to test 17 PHP/Laravel combinations

Bug Fixes: Fixed shouldRefreshProbabilistically() argument count Fixed command description test assertions Fixed EncryptionStrategy interface signatures

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.5.0...1.6.0

1.5.0

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.4.3...1.5.0

1.4.3

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.4.2...1.4.3

1.4.0

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.3.7...1.4.0

1.3.7

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.3.6...1.3.7

1.3.6

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.3.5...1.3.6

1.3.5

What's Changed

New Contributors

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.3.4...1.3.5

1.3.4

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.3.3...1.3.4

1.3.3

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.3.2...1.3.3

1.3.2
1.3.1
1.3.0
1.2.2

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.2.1...1.2.2

1.2.1

What's Changed

Full Changelog: https://github.com/iazaran/smart-cache/compare/1.2.0...1.2.1

1.2.0
1.0.1
1.0.0

What's Changed

New Contributors

Full Changelog: https://github.com/iazaran/smart-cache/commits/1.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky