skip to Main Content

redis (ledis) become slow after flushdb

I use the following command to clear the Ledis index. from redis import StrictRedis db_value = 7 redis = StrictRedis(host=HOST, **cloud_cfg, db=db_value) redis.flushdb() After I clear the index, I use following command: from redis import StrictRedis db_value = 7 redis…

VIEW QUESTION

Why Redis SCAN would return an empty result when the same pattern used with KEYS returns something?

The KEYS command returns some results: > keys Types/*/*BackgroundJob.json 1) "Types/Xyz.Data/Xyz.Data.BackgroundJobEngine.BackgroundJob.json" 2) "Types/Xyz.Web.SystemAdmin/Xyz.Web.SystemAdmin.Models.Encryption.EncryptionMethodByBackgroundJob.json" 3) "Types/BackgroundJobs/SharpTop.Engine.BackgroundJobs.AutofillBackgroundJob.json" 4) "Types/Quartz.Server/BJE.UDT.BackgroundJob.json" 5) "Types/DFControllersTest.Compensation/DFControllersTest.Compensation.SubmitCompensationPublishBackgroundJob.json" 6) "Types/SpecFlowTest.Architecture.Base/SpecFlowTest.Architecture.Base.Model.IntStudioConfigBackgroundJob.json" 7) "Types/SpecFlowTest.Benefits.UI/SpecFlowTest.Benefits.UI.Base.Services.BackgroundJobsService+BackgroundJob.json" 8) "Types/Xyz.WFM.ExpressionService.Client/Xyz.WFM.ExpressionService.Client.BackgroundJob.ExpressionManagerBackgroundJob.json" 9) "Types/DFControllersTest.Compensation/DFControllersTest.Compensation.SubmitGenerateBudgetWorksheetBackgroundJob.json" 10) "Types/DFControllersTest.Compensation/DFControllersTest.Compensation.SubmitCompensationUnPublishBackgroundJob.json" 11) "Types/IntegrationStudio/IntegrationStudio.DAL.Entities.IntStudioConfigBackgroundJob.json" 12) "Types/IntegrationStudio/IntegrationStudio.DAL.Entities.BackgroundJob.json" But the SCAN using the same pattern…

VIEW QUESTION

Redis – Fastify plugin usage

I'm studying Fastify and register plugin with @fastify/redis like this app.register(redisPlugin, { client: initRedis(app.config.REDIS_INTERNAL__HOST, app.config.REDIS_INTERNAL__PASS), closeClient: true, }); And register route: import { FastifyInstance, FastifyPluginAsync } from "fastify"; import v1Routes from "./v1/index.js"; const routes: FastifyPluginAsync = async (fastify: FastifyInstance): Promise<void>…

VIEW QUESTION
Back To Top
Search