Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/anynines/a9s-redis-app

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/anynines/a9s-redis-app

  • v0.0.0-20210720215729-0469c84fb42b
  • Source
  • Go
  • Socket score

Version published
Created
Source

a9s Redis App

This is a sample app to check whether the a9s Redis service is working or not.

Install, Push and Bind

Make sure you installed GO on your machine, download this for mac.

Download the application

$ go get github.com/anynines/a9s-redis-app
$ cd $GOPATH/src/github.com/anynines/a9s-redis-app

Create a service on the a9s PaaS

$ cf create-service a9s-redis40 redis-single-non-persistent-small myredis

Push the app

$ cf push --no-start

Bind the app

$ cf bind-service redis-app myredis

And start

$ cf start redis-app

At last check the created url...

Local Test

Start Redis service with Docker:

$ docker run -d -p 6379:6379 redis redis-server --requirepass secret

Export a few environment variables and run the sample app:

$ export REDIS_HOST=localhost
$ export REDIS_PORT=6379
$ export REDIS_PASSWORD=secret
$ export APP_DIR=$PWD
$ go build
$ ./a9s-redis-app

Remark

To bind the app to other Redis services than a9s-redis50, have a look at the VCAPServices struct.

FAQs

Package last updated on 20 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc