New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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-20241216145906-82c7d318af22
  • Source
  • Go
  • Socket score

Version published
Created
Source

a9s KeyValue App

This is a sample app to check whether the a9s KeyValue Service is working or not.

Install, Push and Bind

Make sure you installed Go on your machine, download this for macOS.

Download the application:

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

Create a service on the a9s PaaS:

cf create-service a9s-keyvalue keyvalue8-single-ssl my-keyvalue-service

Push the app:

cf push --no-start

Bind the app:

cf bind-service keyvalue-app my-keyvalue-service

And start:

cf start keyvalue-app

At last, check the created url...

Local Test

Start Valkey service with Docker:

docker run -d -p 6379:6379 valkey/valkey valkey-server --requirepass secret

Export a few environment variables and run the sample app:

export VALKEY_HOST=localhost
export VALKEY_PORT=6379
export VALKEY_PASSWORD=secret
export VALKEY_USERNAME=default
export APP_DIR=$PWD
go build
./a9s-keyvalue-app

Remark

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

FAQs

Package last updated on 16 Dec 2024

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