Questions tagged [webdis]

Webdis is a simple HTTP server which forwards commands to Redis and sends the reply back using a format of your choice.

Webdis is a simple HTTP server which forwards commands to Redis and sends the reply back using a format of your choice.

http://webd.is/

9 questions
6
votes
2 answers

Redis - get values of keys that match a regex

I need to save for each key, some values with different TTL. e.g - for XXXX, values - val1(expiry time: 10),val2(expiry time: 20) Option 1: My best practice could be: Use hash/sets with per-member expiry. Unfortunately, Redis's containers ( lists,…
user2503775
  • 4,267
  • 1
  • 23
  • 41
3
votes
1 answer

Websocket connection closes with error 1006 (Webdis)

I'm using Redis + Webdis on Debian 7 32. My issue is that all websocket connections are closed with the exit code 1006 after completing the first command (except the "SUBSCRIBE" one). For example, for this testJSON() function function testJSON() { …
Andrew Roo
  • 61
  • 1
  • 2
  • 5
1
vote
0 answers

webdis connection time for second client

I am using webdis (https://github.com/nicolasff/webdis) I ran the webdis as directed in the website and included the following javascript code to connect: var previous_response_length = 0 xhr = new XMLHttpRequest() xhr.open("GET",…
Jonatha Suh
  • 195
  • 13
1
vote
2 answers

Webdis returning empty response

I installed webdis and I have Redis server running. When I try to set/get a key through webdis , the response is empty though. So when I do: curl http://127.0.0.1:7379/SET/hello/world I don't get any response. I am not sure how to debug this, so…
Hommer Smith
  • 26,772
  • 56
  • 167
  • 296
0
votes
0 answers

How to receive data in websocket with Webdis?

I used webdis in docker, with a python file in the backend: import redis r = redis.Redis(host='localhost', port=6379, db=0) value = "tests" r.publish('mychannel', value) And a javascript frontend that uses a websocket var time1 = null …
qwerty_99
  • 640
  • 5
  • 20
0
votes
1 answer

Docker commit not saving changes (anapsix/webdis)

I started a docker images anapsix/webdis: sudo docker run -d -p 7379:7379 -e LOCAL_REDIS=true anapsix/webdis and changed the etc/webdis.json to allow websockets and committed it with sudo docker commit however, when I used the new…
qwerty_99
  • 640
  • 5
  • 20
0
votes
2 answers

In python, how to send base64 str via webdis?

in broswer, I subcribe a channel: var socket = new WebSocket("ws://127.0.0.1:7379/.json"); socket.onopen = function() { socket.send(JSON.stringify(["SUBSCRIBE", "mychannel"])); }; socket.onmessage = function(evt) { …
chao-chao
  • 3
  • 3
0
votes
2 answers

How to expose redis-server port started using "webdis docker image" to host machine

I want to monitor redis running in webdis docker container. I use telegraf which collects redis stats but, telegraf is installed on host machine and it cannot connect to redis as it is running inside docker on 6379 port. I tried to map docker port…
Ashish Mathur
  • 65
  • 1
  • 10
0
votes
2 answers

Redis mass insertions on remote server

I have a remote server running Redis where I want to push a lot of a data from a Java application. Until now I used Webdis to push one command at the time which is not efficient, but I did not have any security issues because I could define the IPs…
Michail N
  • 3,647
  • 2
  • 32
  • 51