Skip to content

Instantly share code, notes, and snippets.

@justincastilla
Created March 8, 2023 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justincastilla/13a43b5f79dd663fc3587ed1739d81fb to your computer and use it in GitHub Desktop.
Save justincastilla/13a43b5f79dd663fc3587ed1739d81fb to your computer and use it in GitHub Desktop.

Keys:

com.redislabs.demos.redisbank.transactions.BankTransaction

A set of transaction IDs

balance_ts

TS for visualization of total balance over time. No extra options set.

transactions

Stream of transactions. Sample entry below:

{
    "id":8996101033312759624,
    "fromAccount":"NL15REBK240390170",
    "fromAccountName":"BMW FS",
    "toAccount":"NL40REBK110416157",
    "toAccountName":"lars",
    "amount":"145,20 €",
    "description":"Monthly car lease",
    "transactionDate":"2023.03.08 at 17:50:41",
    "transactionType":"Online payment",
    "balanceAfter":"102.415,95 €"
}

bigspenders

sorted set containing name as member and total money spent on name as score

com.redislabs.demos.redisbank.transactions.BankTransaction:2050110704614838600

Hash containing a transaction. Sample entry below

"balanceAfter": "99.750,87 €"
"description": "Delivery of groceries"
"fromAccount": "NL68REBK732297691"
"fromAccountName": "Picnic"
"id": 2050110704614838600
"toAccount": "NL40REBK110416157"
"toAccountName": "lars"
"transactionDate": "2023.03.08 at 18:01:00"
"transactionType": "Online payment"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment