I'm using go-redis/redis and go-redis/cache to cache Go objects.

import (
    "communication/MQ_pkg"

    "gopkg.in/go-redis/cache.v3"
    "gopkg.in/vmihailenco/msgpack.v2"
)

obj := &VAR_STRUCT{}        

Codec.Set(&cache.Item{
            Key:    key,
            Object: obj,
        })

where obj is an structure having go maps(key value pair) By Using above code i am setting a key and saving values into it. This is in package common. Now i want to access this in different package say GetRedis_pkg without importing pkg. Is there are any way i can do that. And can i access particular map inside that that structure by any means using redis key imorted gopkg.in/go-redis/cache.v3 to use redis in my code