Add cache implementation backed by an array.
Use \OC\Cache\ArrayCache in Swift.