Skip to content

Commit fd10a06

Browse files
authoredOct 30, 2022
refactor: Refactor links and major additions to links (#70)
1 parent 5fe3f0d commit fd10a06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2723
-607
lines changed
 

‎README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ Stub is split into two applications, the app itself and the router. The router i
4747

4848
[Redis](https://redis.io/) is used as the database for storing links and analytics data, which works well for key-value data types. Redis also has the Sorted Set data type, which is perfect for storing & retrieving time-series analytics data. Here's the full schema:
4949

50-
- `{hostname}:links` – hashmap of all links for a given hostname (e.g. `dub.sh:links`)
51-
- `{hostname}:links:timestamps` – sorted set of all link timestamps for a given hostname (e.g. `dub.sh:links:timestamps`)
52-
- `{hostname}:clicks:{linkId}` – sorted set of all clicks for a given link (e.g. `dub.sh:clicks:github`)
50+
- `{hostname}:{key}` – string containing a JSON object with the target URL and password (optional). Also has an optional TTL.
51+
- `{hostname}:clicks:{key}` – sorted set of all clicks for a given link (e.g. `dub.sh:clicks:github`)
5352

5453
## Deploy Your Own
5554
### Manual

‎components/app/link-card.tsx

-125
This file was deleted.

0 commit comments

Comments
 (0)