Use this API to add cachepolicylabel resources.
175224
public static base_responses add(nitro_service client, cachepolicylabel resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			cachepolicylabel addresources[] = new cachepolicylabel[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new cachepolicylabel();
				addresources[i].labelname = resources[i].labelname;
				addresources[i].evaluates = resources[i].evaluates;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
898892
public static base_response add(nitro_service client, autoscaleprofile resource) throws Exception {
		autoscaleprofile addresource = new autoscaleprofile();
		addresource.name = resource.name;
		addresource.type = resource.type;
		addresource.url = resource.url;
		addresource.apikey = resource.apikey;
		addresource.sharedsecret = resource.sharedsecret;
		return addresource.add_resource(client);
	}
433268
public static base_response add(nitro_service client, pqpolicy resource) throws Exception {
		pqpolicy addresource = new pqpolicy();
		addresource.policyname = resource.policyname;
		addresource.rule = resource.rule;
		addresource.priority = resource.priority;
		addresource.weight = resource.weight;
		addresource.qdepth = resource.qdepth;
		addresource.polqdepth = resource.polqdepth;
		return addresource.add_resource(client);
	}
951422
public static cachepolicylabel[] get_filtered(nitro_service service, String filter) throws Exception{
		cachepolicylabel obj = new cachepolicylabel();
		options option = new options();
		option.set_filter(filter);
		cachepolicylabel[] response = (cachepolicylabel[]) obj.getfiltered(service, option);
		return response;
	}
124480
public ServiceCachingPolicy build() {
        checkState(_maxNumServiceInstances == -1 || _maxNumServiceInstancesPerEndPoint <= _maxNumServiceInstances);

        final int maxNumServiceInstances = _maxNumServiceInstances;
        final int maxNumServiceInstancesPerEndPoint = _maxNumServiceInstancesPerEndPoint;
        final long maxServiceInstanceIdleTimeNanos = _maxServiceInstanceIdleTimeNanos;
        final ExhaustionAction cacheExhaustionAction = _cacheExhaustionAction;

        return new ServiceCachingPolicy() {
            @Override
            public int getMaxNumServiceInstances() {
                return maxNumServiceInstances;
            }

            @Override
            public int getMaxNumServiceInstancesPerEndPoint() {
                return maxNumServiceInstancesPerEndPoint;
            }

            @Override
            public long getMaxServiceInstanceIdleTime(TimeUnit unit) {
                return unit.convert(maxServiceInstanceIdleTimeNanos, TimeUnit.NANOSECONDS);
            }

            @Override
            public ExhaustionAction getCacheExhaustionAction() {
                return cacheExhaustionAction;
            }

            @Override
            public boolean useMultiThreadedClientPolicy() {
                return false;
            }
        };
    }
161182
public static base_response add(nitro_service client, scpolicy resource) throws Exception {
		scpolicy addresource = new scpolicy();
		addresource.name = resource.name;
		addresource.url = resource.url;
		addresource.rule = resource.rule;
		addresource.delay = resource.delay;
		addresource.maxconn = resource.maxconn;
		addresource.action = resource.action;
		addresource.altcontentsvcname = resource.altcontentsvcname;
		addresource.altcontentpath = resource.altcontentpath;
		return addresource.add_resource(client);
	}
982307
private void addToCache(BundleInfo bInfo) {
        List<Resource> info = _cacheBySymbolicName.get(bInfo.symbolicName);
        if (info == null) {
            info = new ArrayList<Resource>();
            info.add(bInfo);
        }

        info = _cacheBySymbolicName.putIfAbsent(bInfo.symbolicName, info);

        if (info != null) {
            synchronized (info) {
                info.add(bInfo);
            }
        }

        _bundleLocations.add(bInfo.file);
    }
148635
public static base_response add(nitro_service client, cachepolicy resource) throws Exception {
		cachepolicy addresource = new cachepolicy();
		addresource.policyname = resource.policyname;
		addresource.rule = resource.rule;
		addresource.action = resource.action;
		addresource.storeingroup = resource.storeingroup;
		addresource.invalgroups = resource.invalgroups;
		addresource.invalobjects = resource.invalobjects;
		addresource.undefaction = resource.undefaction;
		return addresource.add_resource(client);
	}
689884
function addCacheRepository($name, $driver, $config) {
    switch (strtolower($driver)) {
      case 'file':
        $cacheStore = new FileStore(new Filesystem(), $config['path']);
        break;
      case 'apc':
        $cacheStore = new ApcStore(new ApcWrapper());
        break;
      // todo: add memcached, etc.
      default:
        return;
    }
    $this->cacheRepositories[$name] = new Repository($cacheStore);
  }
1282955
protected void addPackageResources(Package aPackage, Map<String, ClassResource> urlSet, ClassLoader[] classLoaders) {
        String packageName = aPackage.getName();
        String relativePath = getPackageRelativePath(packageName);
        List<URL> resources = getResources(relativePath, classLoaders);
        for (URL resource : resources) {
            String key = getJavaResourceKey(resource);
            urlSet.put(key, new ClassResource(packageName, resource));
        }
    }
252195
protected void addCache(Class cls, String pkgname, List<String> classnames, List<Class> classes) {
    m_CacheNames.put(cls.getName() + "-" + pkgname, classnames);
    m_CacheClasses.put(cls.getName() + "-" + pkgname, classes);
  }
1148863
public static base_response add(nitro_service client, dnspolicylabel resource) throws Exception {
		dnspolicylabel addresource = new dnspolicylabel();
		addresource.labelname = resource.labelname;
		addresource.transform = resource.transform;
		return addresource.add_resource(client);
	}
789857
protected void cacheAdd(IPermissionSet ps) throws AuthorizationException {
        try {
            EntityCachingService.getEntityCachingService().add(ps);
        } catch (CachingException ce) {
            throw new AuthorizationException(
                    "Problem adding permissions for " + ps + " to cache", ce);
        }
    }
559018
public function addResourcesFromCacher()
    {
        $resources = $this->resourceCacher->getCachedResources(false);

        if ($resources !== false) {
            $this->addResources($resources);

            return true;
        }

        return false;
    }
1052632
public static base_response update(nitro_service client, cacheparameter resource) throws Exception {
		cacheparameter updateresource = new cacheparameter();
		updateresource.memlimit = resource.memlimit;
		updateresource.via = resource.via;
		updateresource.verifyusing = resource.verifyusing;
		updateresource.maxpostlen = resource.maxpostlen;
		updateresource.prefetchmaxpending = resource.prefetchmaxpending;
		updateresource.enablebypass = resource.enablebypass;
		updateresource.undefaction = resource.undefaction;
		updateresource.enablediskcache = resource.enablediskcache;
		return updateresource.update_resource(client);
	}
255300
public final Cache2kBuilder<K,V> resiliencePolicy(ResiliencePolicy<K,V> v) {
    config().setResiliencePolicy(wrapCustomizationInstance(v));
    return this;
  }
632696
public static cachepolicylabel_binding get(nitro_service service, String labelname) throws Exception{
		cachepolicylabel_binding obj = new cachepolicylabel_binding();
		obj.set_labelname(labelname);
		cachepolicylabel_binding response = (cachepolicylabel_binding) obj.get_resource(service);
		return response;
	}