|
1 | | -# Heets is a simple cache server based on HTTP |
2 | | -* Supported only get/set |
3 | | -* Supported clustering nodes using Hazelcast |
4 | | - |
5 | | -[](https://travis-ci.org/code13k/heets) |
| 1 | +# Heets |
| 2 | +**Heets** is a simple cache server based on HTTP written in Java. |
| 3 | +Heets provide a solution to save data in memory. So it can respond data very quickly. |
| 4 | +Heets has three server. One is a getter server, another is setter server, and the other is restful API server. |
6 | 5 |
|
| 6 | +It provide get and set method via HTTP. |
| 7 | +You can set and get data using HTTP. |
7 | 8 |
|
8 | | -## app_config.yml |
9 | | -It's application configuration file. |
10 | | -```yaml |
11 | | -# Server port |
12 | | -port: |
13 | | - get_http: 55200 |
14 | | - set_http: 55201 |
15 | | - api_http: 55202 |
| 9 | +It provide clustering nodes using Hazelcast. |
| 10 | +You can build high availability(HA) systems by clustering node. |
16 | 11 |
|
17 | | -# Cache |
18 | | -cache: |
19 | | - default_expires: 60 |
| 12 | +[](https://travis-ci.org/code13k/heets) |
20 | 13 |
|
21 | | -# Cluster |
22 | | -cluster: |
23 | | - port: 55210 |
24 | | - nodes: |
25 | | - - 127.0.0.1 |
26 | | -``` |
27 | 14 |
|
28 | | -## logback.xml |
29 | | -It's Logback configuration file that is famous logging library. |
30 | | -* You can send error log to Telegram. |
31 | | - 1. Uncomment *Telegram* configuration. |
32 | | - 2. Set value of `<botToken>` and `<chatId>`. |
33 | | - ```xml |
34 | | - <appender name="TELEGRAM" class="com.github.paolodenti.telegram.logback.TelegramAppender"> |
35 | | - <botToken></botToken> |
36 | | - <chatId></chatId> |
37 | | - ... |
38 | | - </appender> |
39 | | - ``` |
40 | | - 3. Insert `<appender-ref ref="TELEGRAM"/>` into `<root>` |
41 | | - ```xml |
42 | | - <root level="WARN"> |
43 | | - <appender-ref ref="FILE"/> |
44 | | - <appender-ref ref="TELEGRAM"/> |
45 | | - </root> |
46 | | - ``` |
47 | | -* You can send error log to Slack. |
48 | | - 1. Uncomment *Slack* configuration. |
49 | | - 2. Set value of `<webhookUri>`. |
50 | | - ```xml |
51 | | - <appender name="SLACK_SYNC" class="com.github.maricn.logback.SlackAppender"> |
52 | | - <webhookUri></webhookUri> |
53 | | - ... |
54 | | - </appender> |
55 | | - ``` |
56 | | - 3. Insert `<appender-ref ref="SLACK"/>` into `<root>` |
57 | | - ```xml |
58 | | - <root level="WARN"> |
59 | | - <appender-ref ref="FILE"/> |
60 | | - <appender-ref ref="SLACK"/> |
61 | | - </root> |
62 | | - ``` |
63 | | -* You can reload configuration but need not to restart application. |
64 | 15 |
|
| 16 | +###  |
| 17 | +###  |
| 18 | +###  |
| 19 | +###  |
65 | 20 |
|
66 | | -# Server |
67 | | -Perri has two servers. |
68 | | -One is a getter server that read cached data. |
69 | | -The other is a setter server that write data to caching store. |
70 | 21 |
|
71 | 22 |
|
72 | | -## Get HTTP Server |
73 | | -### Usage |
74 | | -```html |
75 | | -http://example.com:{port}/{key} |
76 | | -``` |
77 | | -* port |
78 | | - * Server port |
79 | | - * It's *get_http* in app_config.yml. |
80 | | -* key |
81 | | - * Key for getting value |
82 | | -### Example |
83 | | -```html |
84 | | -http://example.com:55200/example_key |
85 | | -``` |
86 | | - |
87 | | -## Set HTTP Server |
88 | | -```html |
89 | | -http://example.com:{port}/{key} |
90 | | -``` |
91 | | -* port |
92 | | - * Server port |
93 | | - * It's *set_http* in app_config.yml. |
94 | | -* key |
95 | | - * Key for getting value |
96 | | -### Example |
97 | | -```html |
98 | | -http://example.com:55200/example_key |
99 | | -{ |
100 | | - "value": "Test value", |
101 | | - "content_type": "text/plain", |
102 | | - "expires": 200 |
103 | | -} |
104 | | -``` |
105 | 23 |
|
106 | 24 |
|
0 commit comments