
| Filename | |
| Version | 0.1.0.51~trixie |
| Age in days | 311 |
| Release date | 2025 12. 29. |
| Size | 3.75 KB |
| id | 4116 |
| Name | cnb-cache-mysql |
| Package | |
| Appname | |
| Essential | |
| Vendor | |
| License | |
| Distribution | trixie |
| Suite | main |
| Source | cnb-cache |
| Architecture | binary-arm64 |
| MultiArch | foreign |
| Maintainer | Vítězslav Dvořák |
| InstalledSize | 25 |
| Depends | debconf (>= 0.5) , debconf-2.0 , cnb-cache , dbconfig-mysql , php-mysql , php-robmorgan-phinx , php-cakephp-phinx |
| PreDepends | |
| Breaks | |
| Enhances | |
| Replaces | multi-flexibee-setup-mysql |
| Section | unknown |
| Priority | optional |
| Description | mariadb support for cnb cache |
| LongDescription | Mandatory dependencies for use CNB cache with MySQL/MariaDB databas |
| AutoBuiltPackage | |
| Filename | pool/main/c/cnb-cache/cnb-cache-mysql_0.1.0.51~trixie_all.deb |
| MD5sum | f355052a2f12de586a3cf032d8336370 |
| SHA1 | e18c595be42c55b899b0dc4b229e4d64ee384d9a |
| SHA256 | 49b7753150215ef457347e06e6dcfe1a321215f17249ff4850bb3bf726af569d |
| SHA512 | 99d129be0140b368b67ef2745aeca05798eb0271011266e0d90e0b0066e8f73673138cf1cbf0122a69339ea0eb7e00cc9f77de4d901bd1ed95bcf9e6cdfa4f9e |
| Size | 3840 |
| Auto-Built-Package | |
| Conflicts | cnb-cache-pgsql , cnb-cache-sqlite |
| Homepage | https://github.com/Spoje-NET/CNB-cache |
| Provides | |
| Suggests | mariadb-server |
| Existing | |
| fileMtime | 2025-12-29 01:46:57 |
| created | 2025-08-26 22:26:21 |
| updated | 2025-12-29 01:46:57 |

Store daily currency rates in SQL database for given time.
Provide simple API like web interface for stored rates obtaining.
sudo apt install lsb-release wget apt-transport-https bzip2
wget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/vitexsoftware.gpg] https://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo apt update
sudo apt install cnb-cache-DATABASE
database can be mysql or sqlite
Support the apache2 and lighthttpd web servers:

First Configure the currencies to be cached

Then set the days to keep the cache

And finally the cache is initialized:

Data stored in database:

Final configuration is stored in /etc/cnb-cache/cnb-cache.env file
After installation the currencies listing is available on the /cnb-cache/ path.
you can use following URL parameters:
currency - currency code (default: CZK)
when - date of rate (default: today)
date - date of rate in format YYYY-MM-DD
age - age of rate in days (default: 0)
when - yesterday, beforeyesterday - today is default
http://localhost/cnb-cache/?currency=eur - todays EUR rate
http://localhost/cnb-cache/?currency=USD&when=yesterday - yesterday $ rate
{
"id": 6,
"date": "2025-01-24",
"currency": "dolar",
"amount": 1,
"code": "USD",
"rate": 23.958,
"age": 2
}
The systemd-crond service is started and the cache is updated every day at 0:01 AM
See also: https://github.com/Spoje-NET/pohoda-raiffeisenbank
>