Open acelot opened 5 years ago
👎 PSR-16 is a synchronous API. Not suitable to be used in async applications with promises.
But I see, that CacheMapInterface
doesn't use promises.
That's most likely a slight oversight of the author. I'm guessing he just implemented the simple in-memory CacheMap and added an interface as a good practice. But it didn't occur to him that different implementations would need to use promises.
This would improve interoperability and compatibility with third-party caching packages.