Skip to content

Releases: amphp/cache

2.0.1

19 Apr 03:41
v2.0.1
46912e3

Choose a tag to compare

What's Changed

  • Make implicit nullable types explicit to avoid deprecation notice in PHP 8.4.

Full Changelog: v2.0.0...v2.0.1

1.5.1

21 Mar 19:40
v1.5.1
fe78cfa

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.5.0...v1.5.1

2.0.0

09 Jan 21:07
v2.0.0
218bb38

Choose a tag to compare

Stable release compatible with AMPHP v3 and fibers! 🎉

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • Renamed ArrayCache to LocalCache, swapping the constructor argument order
  • Modified LocalCache to implement IteratorAggregate and Countable, acting as an LRU cache now (#20)
  • Support arbitrary values in LocalCache, NullCache, and PrefixCache
  • Changed Cache to support arbitrary values
  • Introduced separate StringCache interface for caching only strings
  • Added StringCacheAdapter to use any Cache in place of a StringCache
  • Removed FileCache (will be available in amphp/file instead)

2.0.0 Beta 4

08 Jan 18:32
v2.0.0-beta.4
1ade827

Choose a tag to compare

2.0.0 Beta 4 Pre-release
Pre-release
  • Modified LocalCache to implement IteratorAggregate and Countable (#20)

2.0.0 Beta 3

07 Nov 21:55
v2.0.0-beta.3
1196b6c

Choose a tag to compare

2.0.0 Beta 3 Pre-release
Pre-release
  • Add compatibility with Revolt v1.x
  • Require PHP 8.1

2.0.0 Beta 2

03 Feb 21:04
v2.0.0-beta.2

Choose a tag to compare

2.0.0 Beta 2 Pre-release
Pre-release
  • Update to revolt/event-loop 0.2.x (#19)

2.0.0 Beta 1

11 Dec 19:45
v2.0.0-beta.1
d2e1db2

Choose a tag to compare

2.0.0 Beta 1 Pre-release
Pre-release

Note: This is a pre-release, there might be breaking changes in the final stable version.

  • Renamed ArrayCache to LocalCache, swapping the constructor argument order
  • Support arbitrary values in LocalCache, NullCache, and PrefixCache
  • Changed Cache to support arbitrary values
  • Introduced separate StringCache interface for caching only strings
  • Added StringCacheAdapter to use any Cache in place of a StringCache
  • Removed FileCache (will be available in amphp/file instead)

1.5.0

29 Jun 17:17
v1.5.0

Choose a tag to compare

  • Add support for amphp/file v2

1.4.0

23 Jun 21:20
v1.4.0

Choose a tag to compare

  • Added SerializedCache (#11)
  • Added AtomicCache (#8)
  • Fixed FileCache::set() return value (#10)

1.3.0

29 Nov 18:51
v1.3.0
14d9fa0

Choose a tag to compare

  • Added FileCache (#7)
  • Removed PHP 7.0 support