code: private MembershipImpl getFromCache(String userName, String groupId, String type)
     {
        return (MembershipImpl)cache.get(cache.getMembershipKey(userName, groupId, type), CacheType.MEMBERSHIP);
     }
docs: Gets membership entity from cache.