Tag: velocity
All the articles with the tag "velocity".
Velocity DataCache Extension Methods
Published:5 min readThis post provides code samples to demonstrate extension methods for working with the Velocity DataCache. This includes a method called IsLocalCache, a Get method that uses generics and a Func delegate to create objects if they are not found in the cache, and a CreateKey method to create keys for cache entries.
Mocking support in Microsoft Velocity
Published:2 min readMicrosoft Velocity does not have mocking support, making it difficult for developers to unit test code that uses the application cache. Microsoft should provide interfaces or make methods virtual to improve the API's support for unit testing.