Skip to content

Releases: iazaran/smart-cache

1.8.0

08 Feb 19:45
f364802

Choose a tag to compare

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: 1.7.0...1.8.0

1.7.0

20 Jan 13:52
3ee0760

Choose a tag to compare

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: 1.6.0...1.7.0

1.6.0

07 Dec 18:32
44b395a

Choose a tag to compare

What's Changed

  • Improvements and new features v1.6 by @iazaran in #28

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: 1.5.0...1.6.0

1.5.0

20 Oct 19:12
c07010b

Choose a tag to compare

What's Changed

  • New features and improve cache optimization solutions by @iazaran in #26

Full Changelog: 1.4.3...1.5.0

1.4.3

28 Sep 19:50
78b89d2

Choose a tag to compare

What's Changed

  • Enhance mobile responsiveness and styling in index.html by @iazaran in #24
  • Update README and documentation for Laravel SmartCache by @iazaran in #25

Full Changelog: 1.4.2...1.4.3

1.4.2

27 Sep 19:48
fb84f0c

Choose a tag to compare

What's Changed

Full Changelog: 1.4.1...1.4.2

1.4.1

27 Sep 19:09
6ca9cc7

Choose a tag to compare

What's Changed

Full Changelog: 1.4.0...1.4.1

1.4.0

27 Sep 17:14
3219956

Choose a tag to compare

What's Changed

  • Dependency tracking tag support invalidation by @iazaran in #21

Full Changelog: 1.3.7...1.4.0

1.3.7

26 Sep 19:36
6a2a457

Choose a tag to compare

What's Changed

  • Test cover php 8.1+ and laravel 8+ by @iazaran in #20

Full Changelog: 1.3.6...1.3.7

1.3.6

09 Sep 11:57
355f80f

Choose a tag to compare

What's Changed

Full Changelog: 1.3.5...1.3.6