Code Monkey home page Code Monkey logo

vvv-redis's Introduction

Redis Utilities for VVV

Build Status

This package is meant to automate the installation and configuration of Redis and phpredis in Varying Vagrant Vagrants (VVV) environments.

The latest version of Redis will be built and installed from source, providing your VVV environment with a powerful in-memory data store and queuing system. Additionally, phpredis will be installed, exposing access to Redis from within your PHP applications.

For more information on how to use Redis, please see the Redis documentation.

Installation

The package registers Redis as a custom utility, making it easy to install via the vvv-custom.yml file:

  1. Add the following line under utility-sources: (or create the node if it doesn't yet exist):

    utility-sources:
      redis: https://github.com/stevegrunwell/vvv-redis.git
  2. Under the utilities: section, add a new node at the same level as the core: node:

    utilities:
      core:
        # Any core utilities you're using go here (e.g. phpmyadmin, php72, etc.)
      redis:
        - redis
  3. (Re-) provision Vagrant using vagrant up --provision

Testing Redis

Once VVV has provisioned, you can verify that Redis is up and running by ping-ing the Redis server:

vagrant@vvv:$ redis-cli ping
PONG

Support

This package has been designed to work with the latest versions of VVV, adhering to the instructions provided in the official Redis Quick Start Guide, using setup scripts that ship with Redis itself. Meanwhile, phpredis is configured to install the latest stable release via PECL.

That being said, bugs do happen from time to time in software. If you run into trouble, please open an issue on GitHub and we'll try to help you through it!

License

This package is licensed under the MIT License, while Redis itself is released under the BSD 3-Clause "New" or "Revised" License and phpredis is available under the PHP License, version 3.01.

vvv-redis's People

Contributors

stevegrunwell avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

byronrode

vvv-redis's Issues

Automatically install phpredis

As it stands now, the installer handles compiling Redis from source, but does not include the PHP extension that enables apps to work with Redis (without using a library like Predis).

For sites working with Redis within WordPress environments (especially with tools like WP Redis), it would be beneficial to have Redis ready to go in PHP without requiring additional configuration.

In order to implement this:

  • Install phpredis
  • Create redis.ini files and put them into /etc/php/{version}/mods-available
  • Enable the Redis PHP extension (e.g. sudo phpenmod redis)

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.