LocalRedis 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package LocalRedis --version 1.0.1                
NuGet\Install-Package LocalRedis -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LocalRedis" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LocalRedis --version 1.0.1                
#r "nuget: LocalRedis, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LocalRedis as a Cake Addin
#addin nuget:?package=LocalRedis&version=1.0.1

// Install LocalRedis as a Cake Tool
#tool nuget:?package=LocalRedis&version=1.0.1                

LocalRedis

This library exports function like Redis, but only for local cache.

Underlyingly it uses Shared Memory for interprocess communications in all data types:

  1. Bool
  2. Byte
  3. Short
  4. UShort
  5. Int32
  6. UInt32
  7. Long
  8. ULong
  9. Single
  10. Double
  11. DateTime
  12. String
  13. BoolArray
  14. ByteArray
  15. ShortArray
  16. UShortArray
  17. Int32Array
  18. UInt32Array
  19. LongArray
  20. ULongArray
  21. SingleArray
  22. DoubleArray
  23. DateTimeArray,

Since string can be in JSON type, so it just like a variant to be transfer cached data in any type. No need to have a string array like any other types.

There is unittest sample file UnitTest_LocalRedis.cs which demonstrates how to use it.

Also an application AllDataTypeManager.exe provided to manage all kind of data types, you can edit and view all data types.

The most important assembly is LocalRedisServer.exe which serves as the management application to let you do:

  1. Set value (Just like Publish a topic)
  2. Get value (Just like Subscribe a topic)
  3. Update value (Like re-publish)
  4. Clear all (Like unsubscribe all topics)

The list view in the main UI will show all the attributes of all the topics (key-value pairs in shared memory)

Both the executables are under sub folder 'assemblies'.

To test it, better to have 2 LocalRedisServer.exe running, one to set value, another to get value and update.

The multilang version of LocalRedisServer and the LabVIEW version of LocalRedis are still under development, but it will not be a free one anymore.

Author

Patrick Gamp

Published date

November 8, 2023

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 1,208 12/12/2023
1.0.1 1,222 11/8/2023
1.0.0 1,165 11/8/2023

Added a DOCX manual.