![]() |
VOOZH | about |
dotnet add package ImageResizer.Plugins.HybridCache --version 5.1.0-rc01
NuGet\Install-Package ImageResizer.Plugins.HybridCache -Version 5.1.0-rc01
<PackageReference Include="ImageResizer.Plugins.HybridCache" Version="5.1.0-rc01" />
<PackageVersion Include="ImageResizer.Plugins.HybridCache" Version="5.1.0-rc01" />Directory.Packages.props
<PackageReference Include="ImageResizer.Plugins.HybridCache" />Project file
paket add ImageResizer.Plugins.HybridCache --version 5.1.0-rc01
#r "nuget: ImageResizer.Plugins.HybridCache, 5.1.0-rc01"
#:package ImageResizer.Plugins.HybridCache@5.1.0-rc01
#addin nuget:?package=ImageResizer.Plugins.HybridCache&version=5.1.0-rc01&prereleaseInstall as a Cake Addin
#tool nuget:?package=ImageResizer.Plugins.HybridCache&version=5.1.0-rc01&prereleaseInstall as a Cake Tool
This plugin is suggested for all ImageResizer installations. It caches image processing requests as static files and is essential for consistent low-latency responses and scalability.
HybridCache is our 7th-generation disk caching engine based on 13 years of large-scale production deployments.
HybridCache offers accurately bounded disk usage, can store mime-type metadata when needed, and uses a sharded, asynchronous write-ahead-log for scalability. Cache entries are written as separate files to improve OS level performance.
This plugin only works with the URL API, not the managed API.
PM> Install-Package ImageResizer.Plugins.HybridCache<resizer><plugins> section of Web.config, insert <add name="HybridCache" />.<resizer> section of Web.config, insert <br />
<hybridCache cacheLocation="C:\imageresizercache\" cacheSizeMb="1,000" />.<hybridCache cacheLocation="C:\imageresizercache\"/> defaults to a app-unique subfolder of the IIS user account's temp folder. Cannot be located in the project or a web-accessible folder.<hybridCache cacheSizeMb="1,000" /> is in MiB and cannot be set below 9 or no files will be cached. 1GiB is the suggested minimum.<hybridCache databaseShards="8" /> adjust the number of shards (and write ahead log groups) in the database. Delete the cache folder after changing this number. Don't change this number unless directed by support.<hybridCache writeQueueMemoryMb="100" /> limits how much RAM can be used by the asynchronous write queue before making requests wait for caching writing to complete. (HybridCache writes cache entries in the background to improve latency). 100MB is the default and suggested minimum.<hybridCache.evictionSweepSizeMb="1" /> determines the minimum amount of bytes to evict from the cache once a cleanup is triggered. 1MB is the default and suggested minimum./imagecache/ folder (otherwise it will become publicly accessible!!!) (Actually, if installed, HybridCache will kill the application with an error message to prevent that - for all we know you resize images of passwords and have directory listing enabled)DiskCache and TinyCache from both nuget.config and Web.configInstall-Package ImageResizer.Plugins.HybridCache<add name="HybridCache" /> in the <resizer><plugins> section of Web.config<hybridCache cacheLocation="C:\imageresizercache\" cacheSizeMb="1,000" /> in the <resizer> section of Web.config. If you want to use a temp folder, omit cacheLocation.If you get this error, add <add assembly="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"/> to <system.web><compilation><assemblies> in web.config.
Example:
<system.web>
<compilation debug="true" targetFramework="4.8" >
<assemblies>
<add assembly="netstandard, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51"/>
</assemblies>
</compilation>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 net472 is compatible. net48 net48 was computed. net481 net481 was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.0-rc01 | 225 | 6/26/2025 |
| 5.0.13-preview09 | 229 | 9/30/2023 |
| 5.0.11-preview08 | 258 | 12/23/2022 |
| 5.0.10-preview07 | 235 | 11/17/2022 |
| 5.0.9-preview06 | 234 | 11/4/2022 |
| 5.0.8-preview05 | 222 | 11/4/2022 |
| 5.0.7-preview-04 | 248 | 10/14/2022 |
| 5.0.6-preview03 | 240 | 10/14/2022 |
| 5.0.5-preview02 | 242 | 9/29/2022 |
| 5.0.4-preview01 | 250 | 8/26/2022 |
| 5.0.3-preview04 | 250 | 8/26/2022 |
| 5.0.2-preview03 | 238 | 8/25/2022 |
| 5.0.1-preview02 | 271 | 8/25/2022 |