Bug 1042115

Summary: [RFE][oslo]: Cache Abstraction Layer for multiple backends
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: Upstream M2Keywords: FutureFeature
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/oslo/+spec/cache-backend-abstraction
Whiteboard: upstream_milestone_icehouse-2 upstream_status_implemented upstream_definition_approved
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-27 13:49:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 21:04:49 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/oslo/+spec/cache-backend-abstraction.

Description:

Provide an abstract class for managing multiple cache backends that can be used in projects needing a cache system.

I.E:

class BaseCache(object):
    passs


class Memcache(BaseCache):
    passs

class Redis(BaseCache):
    passs


def get_cache(....):
    """Gets from configs the cache backend to use"""


Could be imported like:

from openstack.common import cache

cache.get_cache()

Specification URL (additional information):

https://github.com/FlaPer87/oslo-incubator/tree/cache/openstack/common/cache

Comment 2 Stephen Gordon 2014-01-23 20:50:58 UTC
Moving to POST based on upstream status (Implemented).