Skip to content

blackie1019/RedisDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Redis Singleton pattern framework with StackExchange.Redis

Redis Introduction and customized framework base on StackExchange.Redis but update to using singleton pattern and JSON Configuration Mapping with Redis Instance Group and Name concept.

Please reference to Redis Tutoring of SlideShare.

##Features

  • Connection Mapping with Configuration
  • Configuration with Redis Instance Group and Name concept supported
  • Singleton pattern avoid resource waste

##Dependency

  • StackExchange.Redis
  • FX.Configuration
  • Newtonsoft.Json
  • Log4Net(Optional)

##Setup with Dockerizing a Redis service

Docker UI

  1. Enable Virtualization Technology on Bios and install Docker Toolbox
  2. Create a Docker container for Redis
  3. Run the service
  4. Create your web application container

Detail Reference of Dockerizing a Redis service

####If any problem you can remove and setup again

docker-machine rm default
docker-machine --native-ssh create -d virtualbox default

##How to Use

Setting up Configuration

ConnectionSetting follow StackExchange.Redis And other reference to ConfigurationOptions.Parse() of StackExchange.Redis

Conf

Sample

Code Snipet

Example wtih Unit Test

  • Example – Basic
    • Strings
    • Lists
    • Sets
    • Hashes
    • Sorted Sets
  • Example – Advance
    • Sort
    • Expire
    • HashSet, HashGetAll and HashDelete
    • Pub/Sub
    • Pipelines
    • Batch
  • Example – Scripting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages