Skip to content

Commit

Permalink
Cache handler update.
Browse files Browse the repository at this point in the history
Changelog excerpt:
- Added support for specifying a Redis database number to the supplementary
  cache options.
  • Loading branch information
Maikuolan committed Dec 2, 2023
1 parent e06229e commit e00ff0e
Show file tree
Hide file tree
Showing 36 changed files with 108 additions and 74 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co

### v3.5.0

[2023.12.01; Maikuolan]: Improve escaping.
[2023.12.01; Maikuolan]: Improved escaping. Added support for specifying a Redis database number to the supplementary cache options.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"require": {
"php": ">=7.2.0",
"phpmussel/core": "^3.4.2",
"phpmussel/core": "^3.5.0",
"ext-pcre": "*"
},
"autoload": {
Expand Down
3 changes: 2 additions & 1 deletion l10n/af.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Afrikaans language data (last modified: 2023.09.24).
# This file: Afrikaans language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "PDO wagwoord."
supplementary_cache_options_pdo_username: "PDO gebruikersnaam."
supplementary_cache_options_prefix: "Die waarde wat hier gespesifiseer word, sal by alle kasinvoersleutels aangebring word. Verstek = "phpMussel_". Wanneer daar verskeie installasies by dieselfde bediener bestaan, kan dit nuttig wees om hul kas apart van mekaar te hou."
supplementary_cache_options_redis_database_number: "Redis databasisnommer. Verstek = 0. Kennis neem: Kan nie ander waardes as 0 met Redis Cluster gebruik nie."
supplementary_cache_options_redis_host: "Redis gasheerwaarde. Verstek = "localhost"."
supplementary_cache_options_redis_port: "Redis poortwaarde. Verstek = "6379"."
supplementary_cache_options_redis_timeout: "Redis time-out waarde. Verstek = "2.5"."
Expand Down
3 changes: 2 additions & 1 deletion l10n/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Arabic language data (last modified: 2023.09.23).
# This file: Arabic language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "PDO كلمه السر."
supplementary_cache_options_pdo_username: "PDO اسم المستخدم."
supplementary_cache_options_prefix: "سيتم إضافة القيمة المحددة هنا إلى جميع مفاتيح إدخال ذاكرة التخزين المؤقت. افتراضي = "phpMussel_". عند وجود عدة عمليات تثبيت على نفس الخادم، يمكن أن يكون ذلك مفيدًا للحفاظ على ذاكرة التخزين المؤقت منفصلة عن بعضها البعض."
supplementary_cache_options_redis_database_number: "رقم قاعدة بيانات Redis. افتراضي = 0. ملاحظة: لا يمكن استخدام قيم غير 0 مع Redis Cluster."
supplementary_cache_options_redis_host: "قيمة المضيف Redis. افتراضي = "localhost"."
supplementary_cache_options_redis_port: "قيمة منفذ Redis. افتراضي = "6379"."
supplementary_cache_options_redis_timeout: "Redis قيمة المهلة. افتراضي = "2.5"."
Expand Down
3 changes: 2 additions & 1 deletion l10n/bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Bulgarian language data (last modified: 2023.09.23).
# This file: Bulgarian language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "PDO парола."
supplementary_cache_options_pdo_username: "PDO потребителско име."
supplementary_cache_options_prefix: "Посочената тук стойност ще бъде добавена пред всички ключове за въвеждане в кеша. Стандарт = „phpMussel_“. Когато съществуват множество инсталации на един и същи сървър, това може да бъде полезно за поддържане на техните кешове отделно един от друг."
supplementary_cache_options_redis_database_number: "Номер на база данни Redis. Стандарт = 0. Забележка: Не могат да се използват стойности, различни от 0 с Redis Cluster."
supplementary_cache_options_redis_host: "Redis стойност на хоста. Стандарт = „localhost“."
supplementary_cache_options_redis_port: "Redis стойност на порта. Стандарт = „6379“."
supplementary_cache_options_redis_timeout: "Стойност за изчакване на Redis. Стандарт = „2.5“."
Expand Down
3 changes: 2 additions & 1 deletion l10n/bn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Bangla language data (last modified: 2023.09.23).
# This file: Bangla language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "PDO পাসওয়ার্ড।"
supplementary_cache_options_pdo_username: "PDO ব্যবহারকারীর নাম।"
supplementary_cache_options_prefix: "এখানে উল্লিখিত মানটি সমস্ত ক্যাশে এন্ট্রি কীগুলিতে প্রিপেন্ড করা হবে। ডিফল্ট = "phpMussel_"। যখন একই সার্ভারে একাধিক ইনস্টলেশন বিদ্যমান, এটি তাদের ক্যাশে একে অপরের থেকে আলাদা রাখার জন্য কার্যকর হতে পারে।"
supplementary_cache_options_redis_database_number: "ডাটাবেস নম্বর Redis. ডিফল্ট = "0"। দ্রষ্টব্য: Redis Cluster সাথে 0 ছাড়া অন্য মান ব্যবহার করা যাবে না।"
supplementary_cache_options_redis_host: "Redis হোস্ট মান। ডিফল্ট = "localhost"।"
supplementary_cache_options_redis_port: "Redis পোর্ট মান। ডিফল্ট = "6379"।"
supplementary_cache_options_redis_timeout: "Redis সময়সীমা মান। ডিফল্ট = "2.5"।"
Expand Down
3 changes: 2 additions & 1 deletion l10n/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Czech language data (last modified: 2023.09.23).
# This file: Czech language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "Heslo PDO."
supplementary_cache_options_pdo_username: "Uživatelské jméno PDO."
supplementary_cache_options_prefix: "Zde zadaná hodnota bude připojena ke všem klíčům záznamu mezipaměti. Standardní = „phpMussel_“. Pokud na stejném serveru existuje více instalací, může to být užitečné pro oddělení jejich mezipamětí od sebe."
supplementary_cache_options_redis_database_number: "Číslo databáze Redis. Standardní = 0. Poznámka: V Redis Cluster nelze použít jiné hodnoty než 0."
supplementary_cache_options_redis_host: "Hodnota hostitele Redis. Standardní = "localhost"."
supplementary_cache_options_redis_port: "Hodnota portu Redis. Standardní = „6379“."
supplementary_cache_options_redis_timeout: "Hodnota časového limitu Redis. Standardní = „2.5“."
Expand Down
3 changes: 2 additions & 1 deletion l10n/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: German language data (last modified: 2023.10.12).
# This file: German language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "PDO Passwort."
supplementary_cache_options_pdo_username: "PDO Nutzername."
supplementary_cache_options_prefix: "Dieser Wert hier wird zu allen Cache-Eintragsschlüsseln vorangestellt. Standardeinstellung = „phpMussel_“. Wenn mehrere Installationen auf demselben Server vorhanden sind, kann dies nützlich sein, um ihre Caches getrennt zu halten."
supplementary_cache_options_redis_database_number: "Redis Datenbanknummer. Standardeinstellung = 0. Hinweis: Mit Redis Cluster können keine anderen Werte als 0 verwendet werden."
supplementary_cache_options_redis_host: "Redis Hostwert. Standardeinstellung = „localhost“."
supplementary_cache_options_redis_port: "Redis Portwert. Standardeinstellung = „6379“."
supplementary_cache_options_redis_timeout: "Redis Timeout-Wert. Standardeinstellung = „2.5“."
Expand Down
3 changes: 2 additions & 1 deletion l10n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: English language data (last modified: 2023.10.12).
# This file: English language data (last modified: 2023.12.01).
##/

checkbox:
Expand Down Expand Up @@ -123,6 +123,7 @@ config:
supplementary_cache_options_pdo_password: "PDO password."
supplementary_cache_options_pdo_username: "PDO username."
supplementary_cache_options_prefix: "The value specified here will be prepended to all cache entry keys. Default = "phpMussel_". When multiple installations exist at the same server, this can be useful for keeping their caches separate from each other."
supplementary_cache_options_redis_database_number: "Redis database number. Default = 0. Note: Can't use values other than 0 with Redis Cluster."
supplementary_cache_options_redis_host: "Redis host value. Default = "localhost"."
supplementary_cache_options_redis_port: "Redis port value. Default = "6379"."
supplementary_cache_options_redis_timeout: "Redis timeout value. Default = "2.5"."
Expand Down
3 changes: 2 additions & 1 deletion l10n/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Spanish language data (last modified: 2023.10.14).
# This file: Spanish language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "Contraseña de PDO."
supplementary_cache_options_pdo_username: "Nombre del usuario de PDO."
supplementary_cache_options_prefix: "El valor especificado aquí se antepondrá a las claves de todas las entradas de la caché. Predefinido = "phpMussel_". Cuando existen varias instalaciones en el mismo servidor, esto puede ser útil para mantener sus cachés separados entre sí."
supplementary_cache_options_redis_database_number: "Número de base de datos de Redis. Predefinido = 0. Nota: No se pueden utilizar valores distintos de 0 con Redis Cluster."
supplementary_cache_options_redis_host: "Valor del host de Redis. Predefinido = "localhost"."
supplementary_cache_options_redis_port: "Valor del puerto de Redis. Predefinido = "6379"."
supplementary_cache_options_redis_timeout: "Valor del tiempo de espera de Redis. Predefinido = "2.5"."
Expand Down
3 changes: 2 additions & 1 deletion l10n/fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Farsi language data (last modified: 2023.09.23).
# This file: Farsi language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "کلمه عبور PDO."
supplementary_cache_options_pdo_username: "نام کاربری PDO."
supplementary_cache_options_prefix: "مقدار مشخص شده در اینجا به تمام کلیدهای ورودی حافظه پنهان اضافه می شود. پیش فرض = «phpMussel_». هنگامی که چندین نصب در یک سرور وجود دارد، این می تواند برای جدا نگه داشتن حافظه پنهان آنها از یکدیگر مفید باشد."
supplementary_cache_options_redis_database_number: "شماره پایگاه داده Redis. پیش فرض = 0. توجه داشته باشید: نمی توان از مقادیری غیر از 0 با Redis Cluster استفاده کرد."
supplementary_cache_options_redis_host: "مقدار میزبان Redis. پیش فرض = «localhost»."
supplementary_cache_options_redis_port: "مقدار پورت Redis. پیش فرض = «6379»."
supplementary_cache_options_redis_timeout: "مقدار مهلت زمانی Redis. پیش فرض = «2.5»."
Expand Down
3 changes: 2 additions & 1 deletion l10n/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: French language data (last modified: 2023.11.27).
# This file: French language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "Mot de passe PDO."
supplementary_cache_options_pdo_username: "Nom d'utilisateur PDO."
supplementary_cache_options_prefix: "La valeur spécifiée ici sera ajoutée à toutes les clés d'entrée du cache. Défaut = «\_phpMussel_\_». Lorsque plusieurs installations existent sur le même serveur, cela peut être utile pour séparer leurs caches les uns des autres."
supplementary_cache_options_redis_database_number: "Numéro de base de données Redis. Défaut = 0. Remarque\_: Impossible d'utiliser des valeurs autres que 0 avec Redis Cluster."
supplementary_cache_options_redis_host: "Valeur de l'hôte Redis. Défaut = «\_localhost\_»."
supplementary_cache_options_redis_port: "Valeur du port Redis. Défaut = «\_6379\_»."
supplementary_cache_options_redis_timeout: "Valeur du délai d'attente Redis. Défaut = «\_2.5\_»."
Expand Down
3 changes: 2 additions & 1 deletion l10n/he.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Hebrew language data (last modified: 2023.09.23).
# This file: Hebrew language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "סיסמת PDO."
supplementary_cache_options_pdo_username: "שם משתמש PDO."
supplementary_cache_options_prefix: "הערך שצוין כאן יופיע לפני כל מפתחות הזנת המטמון. סטנדרטי = "phpMussel_". כאשר קיימות התקנות מרובות באותו שרת, זה יכול להיות שימושי לשמירת המטמונים שלהם נפרדים זה מזה."
supplementary_cache_options_redis_database_number: "מספר מסד הנתונים של Redis. סטנדרטי = 0. הערה: לא ניתן להשתמש בערכים אחרים מאשר 0 עם Redis Cluster."
supplementary_cache_options_redis_host: "ערך מארח Redis. סטנדרטי = "localhost"."
supplementary_cache_options_redis_port: "ערך יציאת Redis. סטנדרטי = "6379"."
supplementary_cache_options_redis_timeout: "ערך הזמן הקצוב של Redis. סטנדרטי = "2.5"."
Expand Down
3 changes: 2 additions & 1 deletion l10n/hi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Hindi language data (last modified: 2023.09.23).
# This file: Hindi language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "PDO पासवर्ड।"
supplementary_cache_options_pdo_username: "PDO उपयोगकर्ता नाम।"
supplementary_cache_options_prefix: "यहां निर्दिष्ट मान सभी कैश प्रविष्टि कुंजियों के साथ जोड़ा जाएगा। डिफ़ॉल्ट = "phpMussel_"। जब एक ही सर्वर पर कई संस्थापन मौजूद होते हैं, तो यह उनके कैश को एक दूसरे से अलग रखने के लिए उपयोगी हो सकता है।"
supplementary_cache_options_redis_database_number: "Redis डेटाबेस नंबर। डिफ़ॉल्ट = "0"। नोट: Redis Cluster के साथ 0 के अलावा अन्य मानों का उपयोग नहीं किया जा सकता।"
supplementary_cache_options_redis_host: "Redis होस्ट वैल्यू। डिफ़ॉल्ट = "localhost"।"
supplementary_cache_options_redis_port: "Redis पोर्ट वैल्यू। डिफ़ॉल्ट = "6379"।"
supplementary_cache_options_redis_timeout: "Redis मध्यांतर वैल्यू। डिफ़ॉल्ट = "2.5"।"
Expand Down
3 changes: 2 additions & 1 deletion l10n/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Indonesian language data (last modified: 2023.09.23).
# This file: Indonesian language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "Kata sandi PDO."
supplementary_cache_options_pdo_username: "Nama pengguna PDO."
supplementary_cache_options_prefix: "Nilai yang ditentukan disini akan ditambahkan ke awal kunci untuk semua entri di cache. Default = "phpMussel_". Ketika beberapa instalasi ada di server, ini dapat berguna untuk menjaga cache mereka terpisah."
supplementary_cache_options_redis_database_number: "Nomor basis data Redis. Default = 0. Catatan: Tidak dapat menggunakan nilai selain 0 dengan Redis Cluster."
supplementary_cache_options_redis_host: "Nilai host Redis. Default = "localhost"."
supplementary_cache_options_redis_port: "Nilai port Redis. Default = "6379"."
supplementary_cache_options_redis_timeout: "Nilai batas waktu Redis. Default = "2.5"."
Expand Down
3 changes: 2 additions & 1 deletion l10n/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Italian language data (last modified: 2023.09.23).
# This file: Italian language data (last modified: 2023.12.01).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down Expand Up @@ -116,6 +116,7 @@ config:
supplementary_cache_options_pdo_password: "La password per PDO."
supplementary_cache_options_pdo_username: "Il nome utente per PDO."
supplementary_cache_options_prefix: "Il valore specificato qui verrà anteposto a tutte le chiavi di ingresso della cache. Predefinito = "phpMussel_". Quando esistono più installazioni sullo stesso server, questo può essere utile per mantenere le loro cache separate l'una dall'altra."
supplementary_cache_options_redis_database_number: "Il numero del database Redis. Predefinito = 0. Nota: Non è possibile utilizzare valori diversi da 0 con Redis Cluster."
supplementary_cache_options_redis_host: "Il valore dell'host Redis. Predefinito = "localhost"."
supplementary_cache_options_redis_port: "Il valore della porta Redis. Predefinito = "6379"."
supplementary_cache_options_redis_timeout: "Il valore del tempo scaduto per Redis. Predefinito = "2.5"."
Expand Down
Loading

0 comments on commit e00ff0e

Please sign in to comment.