https://github.com/maldworth/cachemanager.filecaching
https://github.com/maldworth/cachemanager.filecaching
cachemanager filecache filecaching
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maldworth/cachemanager.filecaching
- Owner: maldworth
- License: apache-2.0
- Created: 2018-04-24T00:54:40.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2019-12-11T01:02:13.000Z (over 6 years ago)
- Last Synced: 2025-02-16T15:50:40.493Z (about 1 year ago)
- Topics: cachemanager, filecache, filecaching
- Language: C#
- Size: 27.3 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CacheManager.FileCaching
========================
Build Status
------------
Branch | Status
--- | :---:
master | [](https://ci.appveyor.com/project/maldworth/cachemanager-filecaching/branch/master)
develop | [](https://ci.appveyor.com/project/maldworth/cachemanager-filecaching/branch/develop)
Nuget Package
-------------
| Package Name | FullFramework | .NET Standard |
| ------------ | :-----------: | :-----------: |
| [](https://www.nuget.org/packages/CacheManager.FileCaching) | 4.0/4.5 | 2.0 |
Overview
--------
This library has implemented CacheManager.Core's BaseCacheHandle<T> using
[FileCache](https://www.nuget.org/packages/FileCache) as our persistent store.
Cache Manager 2.0.0-prerelease must be used in order to support NetStandard.
Quick Start
-----------
I assume you are already familiar with CacheManager, so really the only thing you
need to get going is configure.
```csharp
var config = new ConfigurationBuilder()
.WithJsonSerializer() // Only need this line if targeting netstandard
.WithFileCacheHandle()
.Build();
var _cache = new BaseCacheManager(config);
// Then somewhere else in your code
_cache.Add("mykey","myvalue");
var result = _cache.Get("mykey");
```
**_Note_**: _NetStandard target of CacheManager doesn't support BinarySerializer
[right now](https://github.com/MichaCo/CacheManager/issues/221)_
Please look in the unit tests for other examples of caching Complex Objects.