Closed Bug 1521883 Opened 7 years ago Closed 3 months ago

Refactor Bugzilla::Memcached into Bugzilla::Cache to allow for extension

Categories

(bugzilla.mozilla.org :: General, task, P3)

Production

Tracking

()

RESOLVED WONTFIX

People

(Reporter: dylan, Unassigned)

References

Details

  1. Rename Bugzilla::Memcached to Bugzilla::Cache::Memcached
  2. Replace the 'new' constructor with Moo and a lazy attribute for building the inner memcached object
  3. Replace all the $self->{memcached} with $self->memcached.
  4. Create a Bugzilla::Cache role (as below)
  5. add with 'Bugzilla::Cache' to Bugzilla::Cache::Memcached
package Bugzilla::Cache;
use 5.10.1;
use strict;
use warnings;


requires 'set', 'get_config', 'clear_config'; # add all methods that are called outside of the class
Assignee: imadueme → nobody
Priority: -- → P3
Type: defect → task

Probably sticking with Memcache for the foreseeable future since it is widely supported.

Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.