Open Guikingone opened 6 years ago
Progress on write
process via https://github.com/Guikingone/MarketReminder/commit/af95a181d84323a09cb41288325dd46bc5e5bb0b.
Single entry call started via https://github.com/Guikingone/MarketReminder/commit/1b079a742176cd2526f7b57b2438a7f3ad5a309f.
Single entry call validated (Blackfire) via https://github.com/Guikingone/MarketReminder/commit/0b17454e22ce38ddf7129d567e0c0071bc9832a9.
Feature: Every translation should be stored inside Redis.
Specification:
RedisConnector
should be created, it should use theTagAwareAdapter
class fromsymfony/cache
and thePredis
client.RedisTranslationWriter
should be created in order to access the redis instance and save an array ofRedisTranslation
which contain every translation key/value.RedisTranslationRepository
should be created in order to retrieve aRedisTranslation
stored into the Redis instance.RedisTranslationWarmer
should be created, this one's gonna use theCloudTranslationWarmer
in order to translate and store the content in the Redis instance.Constraints:
RedisTranslationRepository
should allow to retrieve a translation using the filename (of the translation) or via the_locale
and the filename.Tests:
Performances:
RedisTranslationRepository->getSingleEntry()
) should be under100kb
.80kb
for theRedisTranslationWriter->write()
process.50b
.