ApiMethodCacheControl

com.google.api.server.spi.config

Annotation Type ApiMethodCacheControl


  • Deprecated. 
    ApiMethodCacheControl is deprecated and will be removed in a future version of Cloud Endpoints.

    @Retention(value=RUNTIME)
     @Target(value=METHOD)
     @Deprecated
    public @interface ApiMethodCacheControl
    Annotation for configuration of API method cache control.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      int maxAge
      Deprecated. 
      Overrides the maximum age to cache responses from this method.
      boolean noCache
      Deprecated. 
      Disables caching of this method.
    • Element Detail

      • noCache

        public abstract boolean noCache
        Deprecated. 
        Disables caching of this method. The default value is true, so merely adding this annotation to your method config will disable caching for that method, unless you set this field to false.
        Default:
        true
      • maxAge

        public abstract int maxAge
        Deprecated. 
        Overrides the maximum age to cache responses from this method.
        Default:
        0
本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
Cloud Endpoints Frameworks for App Engine
需要協助嗎?請前往我們的支援網頁