Skip to content

Commit b831a5c

Browse files
committed
Initial commit
0 parents  commit b831a5c

File tree

8 files changed

+114
-0
lines changed

8 files changed

+114
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*.cr]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/docs/
2+
/lib/
3+
/bin/
4+
/.shards/
5+
*.dwarf
6+
7+
# Libraries don't need dependency lock
8+
# Dependencies will be locked in applications that use them
9+
/shard.lock

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 your-name-here <jeremywoertink@gmail.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# LuckyCacheRedisStore
2+
3+
An adapter for [LuckyCache](https://github.com/luckyframework/lucky_cache/) to store
4+
data in Redis.
5+
6+
## Installation
7+
8+
1. Add the dependency to your `shard.yml`:
9+
10+
```yaml
11+
dependencies:
12+
lucky_cache:
13+
github: luckyframework/lucky_cache
14+
lucky_cache_redis_store:
15+
github: luckyframework/lucky_cache_redis_store
16+
```
17+
18+
2. Run `shards install`
19+
20+
## Usage
21+
22+
```crystal
23+
require "lucky_cache_redis_store"
24+
```
25+
26+
TODO: Write usage instructions here
27+
28+
## Development
29+
30+
TODO: Write development instructions here
31+
32+
## Contributing
33+
34+
1. Fork it (<https://github.com/your-github-user/lucky_cache_redis_store/fork>)
35+
2. Create your feature branch (`git checkout -b my-new-feature`)
36+
3. Commit your changes (`git commit -am 'Add some feature'`)
37+
4. Push to the branch (`git push origin my-new-feature`)
38+
5. Create a new Pull Request
39+
40+
## Contributors
41+
42+
- [your-name-here](https://github.com/your-github-user) - creator and maintainer

shard.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: lucky_cache_redis_store
2+
version: 0.1.0
3+
4+
authors:
5+
- Jeremy Woertink <jeremywoertink@gmail.com>
6+
7+
crystal: '>= 1.14.1'
8+
9+
license: MIT
10+
11+
development_dependencies:
12+
ameba:
13+
github: crystal-ameba/ameba
14+
version: ~> 1.5.0
15+
lucky_cache:
16+
github: luckyframework/lucky_cache
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require "./spec_helper"
2+
3+
describe LuckyCacheRedisStore do
4+
# TODO: Write tests
5+
6+
it "works" do
7+
false.should eq(true)
8+
end
9+
end

spec/spec_helper.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "spec"
2+
require "../src/lucky_cache_redis_store"

src/lucky_cache_redis_store.cr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# TODO: Write documentation for `LuckyCacheRedisStore`
2+
module LuckyCacheRedisStore
3+
VERSION = "0.1.0"
4+
5+
# TODO: Put your code here
6+
end

0 commit comments

Comments
 (0)