fix bugs around retrieving cache items, note that sliding expiration doesn't work properly as of now
This commit is contained in:
@@ -3,6 +3,8 @@ Use azure table storage for AspNet core 1.0 Distributed Cache.
|
||||
|
||||
Azure Table Storage is a very cheap, [super fast](https://www.troyhunt.com/working-with-154-million-records-on/) key value store, and its much cheaper than the redis cluster in azure. This is not a true replacement for redis, and redis should be used if people have money, but this is designed to get people a very cheap cache in azure. Currently this doesn't actually support the dotnet core runtime, and won't until the Azure Storage client is updated to support core.
|
||||
|
||||
**warning** As of right now sliding expiration doesn't work. This is at the top of the list to get working
|
||||
|
||||
## How to use
|
||||
|
||||
`install-package AzureTableStorageCache`
|
||||
@@ -22,7 +24,9 @@ In your startup.cs
|
||||
|
||||
```
|
||||
|
||||
Then in a controller just ask for an IDistributedCache in the constructor. Since this implements Microsoft's IDistributed cache, it could be easily swapped out for redis or another Distributed cache
|
||||
Then in a controller just ask for an IDistributedCache in the constructor. Since this implements Microsoft's IDistributed cache, it could be easily swapped out for redis or another Distributed cache.
|
||||
|
||||
|
||||
|
||||
```csharp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user