Skip to content

Conversation

@shmax
Copy link
Contributor

@shmax shmax commented Sep 24, 2023

When I was setting up all the typehints for the 2.0 refresh, I annotated Cache::$adapter with Memcache.

This was a mistake, because clients will likely use their own cache implementation. In this change, I introduce an iCache interface which should be much more friendly. In the future we may want to move to some kind of standard, but no need to get involved in that, now.

@codecov
Copy link

codecov bot commented Sep 24, 2023

Codecov Report

Merging #99 (5b572ef) into master (039eb3c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #99   +/-   ##
=========================================
  Coverage     98.81%   98.81%           
  Complexity      953      953           
=========================================
  Files            34       34           
  Lines          2362     2362           
=========================================
  Hits           2334     2334           
  Misses           28       28           
Files Changed Coverage Δ
lib/Cache.php 100.00% <ø> (ø)
lib/cache/Memcache.php 100.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shmax shmax merged commit 82cfadb into master Sep 24, 2023
@shmax shmax deleted the cache-interface branch September 24, 2023 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants