https://github.com/alirezakhosravi/ignitecachingdistributed
Using Apache Ignite as distributed cache infrastructure in .net Core
https://github.com/alirezakhosravi/ignitecachingdistributed
apache cache caching distributedcache dotnet-core dotnetcore ignite
Last synced: 6 months ago
JSON representation
Using Apache Ignite as distributed cache infrastructure in .net Core
- Host: GitHub
- URL: https://github.com/alirezakhosravi/ignitecachingdistributed
- Owner: alirezakhosravi
- Created: 2018-12-05T09:27:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T11:57:53.000Z (about 7 years ago)
- Last Synced: 2025-06-24T02:01:56.279Z (7 months ago)
- Topics: apache, cache, caching, distributedcache, dotnet-core, dotnetcore, ignite
- Language: C#
- Homepage:
- Size: 2.97 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IgniteCachingDistributed
Using Apache Ignite as distributed cache infrastructure in .net Core
https://www.nuget.org/packages/Raveshmand.Cache.Ignite/
## Simple configuration
```
services.AddDistributedIgniteCache(option =>
{
option.Endpoints = new string[]
{
"localhost:11211",
"localhost:47100",
"localhost:47500",
"localhost:49112"
};
option.PersistenceEnabled = true;
});
```
## Advanced Configuration
for advance configuration, see https://apacheignite-net.readme.io/docs/
```
IgniteConfiguration customConfiguration = new IgniteConfiguration
{
DiscoverySpi = new TcpDiscoverySpi
{
IpFinder = new TcpDiscoveryStaticIpFinder
{
Endpoints = new string[]
{
"localhost:11211",
"localhost:47100",
"localhost:47500",
"localhost:49112"
}
},
SocketTimeout = TimeSpan.FromSeconds(0.3)
},
IncludedEventTypes = EventType.CacheAll,
DataStorageConfiguration = new DataStorageConfiguration
{
DefaultDataRegionConfiguration = new DataRegionConfiguration
{
Name = "defaultRegion",
PersistenceEnabled = true
},
DataRegionConfigurations = new[]
{
new DataRegionConfiguration
{
// Persistence is off by default.
Name = "inMemoryRegion"
}
}
},
CacheConfiguration = new[]
{
new CacheConfiguration
{
// Default data region has persistence enabled.
Name = "persistentCache"
},
new CacheConfiguration
{
Name = "inMemoryOnlyCache",
DataRegionName = "inMemoryRegion"
}
}
};
services.AddDistributedIgniteCache(option =>
{
option.Configuration = customConfiguration;
option.SetActive = true;
});
```