Skip to content

fix: remove redis logical db (MAPCO-6821)#9

Merged
NatalieShaked merged 4 commits intomasterfrom
fix/remove-redis-logical-db
Feb 27, 2025
Merged

fix: remove redis logical db (MAPCO-6821)#9
NatalieShaked merged 4 commits intomasterfrom
fix/remove-redis-logical-db

Conversation

@NatalieShaked
Copy link
Collaborator

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

Further information:
Our previous logic used Redis logical databases, but when we tried it with Redis Enterprise, it did not work, since Redis Enterprise does not support logical databases within an existing database.
So instead of logical databases, we used prefixes.

@NatalieShaked NatalieShaked self-assigned this Feb 26, 2025
@NatalieShaked NatalieShaked marked this pull request as draft February 26, 2025 14:16
@NatalieShaked NatalieShaked marked this pull request as ready for review February 26, 2025 14:22
Comment on lines 59 to 61
"database": {
"__name": "REDIS_DATABASE",
"__format": "number"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use Redis Enterprise. Is there any use for REDIS_DATABASE if there are no logical databases anymore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

"geocodingIndex": 0,
"ttlIndex": 1
},
"database": 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

import { NotFoundError } from '../common/errors';
import { RedisClient } from '../redis/index';

const REDIS_PREFIX = 'ttl_';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too indicative

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@NatalieShaked NatalieShaked merged commit 9921a19 into master Feb 27, 2025
7 checks passed
@NatalieShaked NatalieShaked deleted the fix/remove-redis-logical-db branch February 27, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants