Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Redis Client for COM+

NotificationsYou must be signed in to change notification settings

githubADENES/redis-com-client

 
 

Repository files navigation

Redis Client for COM+ | StackExchange.Redis Wrapper

This was made to be used on Classic ASP (ASP 3.0).

Line command to install the COM+:

%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\regasm redis-com-client.dll /tlb:redis-com-client.tlb /codebase

On the ASP side you have not create the object. I initialized this in the global.asa using this:

  • < OBJECT RUNAT=Server SCOPE=Application ID=Cache PROGID=CacheManager>

However, it also works if you want to create a scoped object:

  • Set Cache = Server.CreateObject("CacheManager")

Later you can use these operations:

  • Initiliaze (this operation is required in order to share the same Redis instance with N sites)Cache.Init "prefix1"

-Add

Cache.Add "key1", "value"

or

Cache("key1") = "value"

-Add with expiration

Cache.SetExpiration "key1", "value", 1000 'ms

-Get

Cache.Get "key1"

or

Cache("key1")

-Remove

Cache.Remove "key1"

-Remove All

Cache.RemoveAll()

About

Redis Client for COM+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C#100.0%

[8]ページ先頭

©2009-2025 Movatter.jp