Skip to content

Commit

Permalink
Merge branch 'master' of github.com:talrasha007/nginx-lmdb-queue
Browse files Browse the repository at this point in the history
  • Loading branch information
talrasha007 committed Jul 29, 2015
2 parents 434114b + 1485fa6 commit 019ccc1
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,26 @@ nginx module to write data into lmdb-queue
# Nginx configure doesn't configure CXXFLAGS, so we have to this:
mv objs/Makefile objs/Makefile.old; sed 's/\t\t\(nginx-lmdb-queue\/src\/.*\.cc\)/\t\t-std=c++11 \1/' objs/Makefile.old > objs/Makefile
make -j
```
```

## Directives
```
Declare a queue:
Syntax: lmdb_queue 'queue_path';
Context: http
Example: lmdb_queue '/home/user/queue';
```

```
Declare a topic:
Syntax: lmdb_queue_topic 'topic_name' chunkSize[g|m] chunksToKeep;
Context: http
Example: lmdb_queue_topic ng_remote 2g 400;
```

```
Push msg to queue:
Syntax: lmdb_queue_push 'topic_name' 'data_format';
Context: location
Example: lmdb_queue_push ng_remote '$json_header\0$request_body'; # $json_header is a json string var generated by lua.
```

0 comments on commit 019ccc1

Please sign in to comment.