zkteco-home / redis-windows

Native port of Redis for Windows,it can be installed as service.
MIT License
1.84k stars 167 forks source link

Why do you canceled the http api module?I think it's a import and powerful. #65

Closed jmonereal closed 8 months ago

jmonereal commented 8 months ago

Why do you canceled the http api module?I think it's a import and powerful.

zkteco-home commented 8 months ago

This is Redis,what is http api module?i didnt cancel anything.

jmonereal commented 8 months ago

I have read this article and i translated it to English from Chinese.

Installing and configuring Redis HTTP API

To use the Redis HTTP interface, you first need to install the Redis server and Redis HTTP API. On Ubuntu, you can install it using the following command:

$sudo apt-get update

$sudo apt-get install redis server redis command

one

two

After installation, you need to edit the Redis configuration file Redis.conf and enable the HTTP interface. You can find the following content and uncomment it:

HTTP enabled yes

HTTP port 8081

one

two

Then restart the Redis server:

$sudo service redis server restart

one

Using Redis HTTP API

Using the HTTP interface of Redis is very simple. You only need to use various methods of HTTP to send requests and perform corresponding operations based on the path and parameters of the request.

Here are some common examples of Redis operations:

Set key value pairs

To set a key value pair, you can use the HTTP PUT method and specify the key and value:

PUT/API/set? Key=mykey&value=myvalue

one

Get key value pairs

To obtain the value of a key, you can use the HTTP GET method and specify the key:

GET/API/get? Key=mykey

one

Delete key value pairs

To delete a key value pair, you can use the HTTP Delete method and specify the key:

Delete/app/delete? Key=mykey

one

Get all key value pairs

To obtain all key value pairs, you can use the HTTP GET method without specifying the key:

Copy

GET/API/getAll

one

The above are just some simple examples. In fact, Redis's HTTP interface supports more operations and parameters. You can refer to the documentation of the Redis HTTP API to learn more details.

jmonereal commented 8 months ago

https://github.com/nicolasff/webdis here is the other one