Data Structures | Defines | Enumerations | Functions | Variables

CacheControl.h File Reference

A brief file description. More...

#include "Main.h"
#include "P_EventSystem.h"
#include "ControlBase.h"
Include dependency graph for CacheControl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  CacheControlResult
class  CacheControlRecord

Defines

#define CACHE_CONTROL_TIMEOUT   (HRTIME_HOUR*1)

Enumerations

enum  CacheControlType {
  CC_INVALID = 0, CC_REVALIDATE_AFTER, CC_NEVER_CACHE, CC_STANDARD_CACHE,
  CC_IGNORE_NO_CACHE, CC_CLUSTER_CACHE_LOCAL, CC_IGNORE_CLIENT_NO_CACHE, CC_IGNORE_SERVER_NO_CACHE,
  CC_PIN_IN_CACHE, CC_TTL_IN_CACHE, CC_NUM_TYPES
}

Functions

inkcoreapi void getCacheControl (CacheControlResult *result, HttpRequestData *rdata, OverridableHttpConfigParams *h_txn_conf, char *tag=NULL)
inkcoreapi bool getClusterCacheLocal (URL *url, char *hostname)
inkcoreapi bool host_rule_in_CacheControlTable ()
inkcoreapi bool ip_rule_in_CacheControlTable ()
void initCacheControl ()
void reloadCacheControl ()

Variables

const int CC_UNSET_TIME = -1

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file CacheControl.h.


Define Documentation

#define CACHE_CONTROL_TIMEOUT   (HRTIME_HOUR*1)

Definition at line 42 of file CacheControl.h.

Referenced by reloadCacheControl().


Enumeration Type Documentation

Enumerator:
CC_INVALID 
CC_REVALIDATE_AFTER 
CC_NEVER_CACHE 
CC_STANDARD_CACHE 
CC_IGNORE_NO_CACHE 
CC_CLUSTER_CACHE_LOCAL 
CC_IGNORE_CLIENT_NO_CACHE 
CC_IGNORE_SERVER_NO_CACHE 
CC_PIN_IN_CACHE 
CC_TTL_IN_CACHE 
CC_NUM_TYPES 

Definition at line 48 of file CacheControl.h.


Function Documentation

inkcoreapi void getCacheControl ( CacheControlResult result,
HttpRequestData rdata,
OverridableHttpConfigParams h_txn_conf,
char *  tag = NULL 
)
inkcoreapi bool getClusterCacheLocal ( URL url,
char *  hostname 
)
inkcoreapi bool host_rule_in_CacheControlTable (  ) 

Definition at line 136 of file CacheControl.cc.

References ControlMatcher< Data, Result >::hostMatch.

void initCacheControl (  ) 
inkcoreapi bool ip_rule_in_CacheControlTable (  ) 

Definition at line 142 of file CacheControl.cc.

References ControlMatcher< Data, Result >::ipMatch.

Referenced by HttpSM::init().

void reloadCacheControl (  ) 

Variable Documentation

const int CC_UNSET_TIME = -1

Definition at line 40 of file CacheControl.h.