Giter VIP home page Giter VIP logo

z-shell-_-redis's Introduction

Logo ❮ ZI ❯ Service - Redis

This Zsh service-plugin will run redis-server pointing it to configuration file redis.conf. This can be used with plugin z-shell/zredis to have the redis-backend running, to use shared-variables (between shells). Bind the variables using lazy method (-L {type} option):

# Port 4815, database nr. 3, key "MYLIST"
ztie -d db/redis -f "127.0.0.1:4815/3/MYLIST" -L list mylist

The command ztie is provided by z-shell/zredis plugin.

ZI

A service-plugin needs a plugin manager that supports loading single plugin instance per all active Zsh sessions, in background. ZI supports this, just add:

zi ice service'redis'
zi light z-shell/redis

to ~/.zshrc.

Explanation of Zsh-spawned services

First Zsh instance that will gain a lock will spawn the service. Other Zsh instances will wait. When you close the initial Zsh session, another Zsh will gain lock and resume the service. z-shell/zredis supports reconnecting, so all shared-variables will still work.

z-shell-_-redis's People

Contributors

psprint avatar ss-o avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.