Hook Redis

Open
#160 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
redis, ruby
Domain
backend, databases

Research direction

Start by reviewing the Redis methods and application entry points listed in the table, including app/integrations/FileCacheMaintainer and app/models/Counts. Identify how Redis calls are currently discovered or hooked, then determine what complete coverage for the listed methods would mean. Done should be verifiable against the representative table, but the issue does not name tests or a specific implementation boundary.

Written by the indexing model from the issue text.

Description

enhancement

Here's a representative table of Redis methods which can be hooked automatically:

├───────────────────────────────────────────────────────────┼─────────────────────────────────┼────────────────────────────────┤
│                                                           │ redis/Redis#expire              │                                │
│                                                           │ redis/Redis#get                 │                                │
│                                                           │ redis/Redis#llen                │                                │
│                                                           │ redis/Redis#lpop                │                                │
│                                                           │ redis/Redis#lpush               │                                │
│ app/integrations/FileCacheMaintainer.assign_blocklist_ids │ redis/Redis#sadd                │                                │
│ app/integrations/FileCacheMaintainer.blocklist            │ redis/Redis#smembers            │                                │
│ app/integrations/FileCacheMaintainer.blocklist            │ redis/Redis#type                │                                │
│ app/integrations/FileCacheMaintainer.blocklist_include?   │ redis/Redis#sismember           │                                │
│ app/integrations/FileCacheMaintainer.files                │ redis/Redis#hgetall             │                                │
│ app/integrations/FileCacheMaintainer.files                │ redis/Redis#type                │                                │
│ app/integrations/FileCacheMaintainer.redis                │ redis/Redis.current             │                                │
│ app/integrations/FileCacheMaintainer.remove_file          │ redis/Redis#hdel                │                                │
│ app/integrations/FileCacheMaintainer.reset_blocklist_ids  │ redis/Redis#expire              │                                │
│ app/integrations/FileCacheMaintainer.reset_file_info      │ redis/Redis#expire              │                                │
│ app/integrations/FileCacheMaintainer.update_file_info     │ redis/Redis#hset                │                                │
│ app/models/Counts.assign_for                              │ redis/Redis#hset                │                                │
│ app/models/Counts.retrieve_for                            │ redis/Redis#hget                │                                │
│ app/models/Counts.retrieve_for                            │ redis/Redis::Connection.drivers │                                │
│ app/models/Counts.week_creation_chart                     │ redis/Redis#hget                │                                │
│ app/workers/EmailUpdatedTermsWorker#perform               │ redis/Redis#llen                │                                │
│ app/workers/EmailUpdatedTermsWorker#perform               │ redis/Redis#lpop                │                                │
│ app/workers/EmailUpdatedTermsWorker#perform               │ redis/Redis#rpush               │                                │
│ app/workers/EmailUpdatedTermsWorker#redis                 │ redis/Redis.current             │                                │
│ app/workers/ScheduledWorker.redis                         │ redis/Redis#expire              │                                │
│ app/workers/ScheduledWorker.redis                         │ redis/Redis#hget                │                                │
│ app/workers/ScheduledWorker.redis                         │ redis/Redis#hset                │                                │
│ app/workers/ScheduledWorker.redis                         │ redis/Redis::Connection.drivers │                                │
│ sidekiq/Sidekiq.redis                                     │ redis/Redis#llen                │                                │
│ sidekiq/Sidekiq.redis                                     │ redis/Redis#lrange              │                                │
│ sidekiq/Sidekiq.redis                                     │ redis/Redis::Connection.drivers │                                │
│ sidekiq/Sidekiq::Testing.inline!                          │ redis/Redis#get                 │                                │
│ vcr/VCR.use_cassette                                      │ redis/Redis#get                 │                                │
└───────────────────────────────────────────────────────────┴─────────────────────────────────┴────────────────────────────────┘
Dominant language
Ruby
Stars
101
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getappmap/appmap-ruby

All issues in getappmap/appmap-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.