Sample of use the Redis Memory Cache with WebApi
This project is a sample of server-side WebApi application with Redis and EntityFramework.
The project has a only one branch, named as master.
The Controller StudentsController
has the sample of the Redis implementation:
- This controller can be use two classes (
StudentRedisRepository
andRedisCacheManager
)
The Controller StudentsEFController
has the sample of the EF implementation:
- This controller use the class
StudentRedisRepository
This solution contain a test project. Test project use MSTest runner. Open the project, build it, and then test cases should appear in test explorer. Run all the tests in the test explorer.