Skip to content

Commit 813c178

Browse files
committed
ref #84 initial idea for Redis
1 parent a579573 commit 813c178

File tree

18 files changed

+503
-1
lines changed

18 files changed

+503
-1
lines changed

org.nodeclipse.help/contents/node_redis.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,43 @@ Some helpful commands:
1212
- `KEYS *` list all keys. Not for production environment.
1313
- `EXISTS key`
1414

15-
## node_redis
15+
16+
### redis-cli
17+
18+
redis-cli doesn't allow to execte scripts only commands.
19+
20+
```txt
21+
C:\Program Files\Redis>redis-cli.exe -h
22+
redis-cli 2.4.6 (git:26cdd13a)
23+
24+
Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]
25+
-h <hostname> Server hostname (default: 127.0.0.1)
26+
-p <port> Server port (default: 6379)
27+
-s <socket> Server socket (overrides hostname and port)
28+
-a <password> Password to use when connecting to the server
29+
-r <repeat> Execute specified command N times
30+
-i <interval> When -r is used, waits <interval> seconds per command.
31+
It is possible to specify sub-second times like -i 0.1.
32+
-n <db> Database number
33+
-x Read last argument from STDIN
34+
-d <delimiter> Multi-bulk delimiter in for raw formatting (default: \n)
35+
--raw Use raw formatting for replies (default when STDOUT is not a tty)
36+
--latency Enter a special mode continuously sampling latency.
37+
--help Output this help and exit
38+
--version Output version and exit
39+
40+
Examples:
41+
cat /etc/passwd | redis-cli -x set mypasswd
42+
redis-cli get mypasswd
43+
redis-cli -r 100 lpush mylist x
44+
redis-cli -r 100 -i 1 info | grep used_memory_human:
45+
46+
When no command is given, redis-cli starts in interactive mode.
47+
Type "help" in interactive mode for information on available commands.
48+
```
49+
50+
51+
### node_redis
1652

1753
[node_redis](https://github.com/mranney/node_redis) is a node.js redis client.
1854

org.nodeclipse.redis/.classpath

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

org.nodeclipse.redis/.project

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.nodeclipse.redis</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.pde.PluginNature</nature>
26+
<nature>org.eclipse.jdt.core.javanature</nature>
27+
</natures>
28+
</projectDescription>

org.nodeclipse.redis/HelpToc.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?NLS TYPE="org.eclipse.help.toc"?>
3+
4+
<toc label="Nodeclipse Help - Redis">
5+
<topic label="Redis" href="help/.redis.md.html"/>
6+
</toc>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Nodeclipse Redis
4+
Bundle-SymbolicName: org.nodeclipse.redis;singleton:=true
5+
Bundle-Version: 0.7.0.qualifier
6+
Bundle-Activator: org.nodeclipse.redis.Activator
7+
Bundle-Vendor: Enide
8+
Require-Bundle: org.eclipse.ui,
9+
org.eclipse.core.runtime,
10+
org.eclipse.ui.ide,
11+
org.eclipse.ui.editors,
12+
org.eclipse.debug.ui,
13+
org.nodeclipse.ui
14+
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
15+
Bundle-ActivationPolicy: lazy
16+
Import-Package: org.nodeclipse.debug.launch,
17+
org.nodeclipse.debug.util

org.nodeclipse.redis/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
Redis support is under investigation
3+
4+
<https://github.com/Nodeclipse/nodeclipse-1/issues/84>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source.. = src/
2+
output.. = bin/
3+
bin.includes = plugin.xml,\
4+
META-INF/,\
5+
.,\
6+
icons/,\
7+
help/,\
8+
HelpToc.xml
2.74 KB
Loading
1.76 KB
Loading
2.03 KB
Loading

0 commit comments

Comments
 (0)