package play.cache;

/**
 * Provides an access point for Play's cache service.
 */
public class Cache {

  /**
   * Retrieves an object by key.
   *
   * @return object
   */
  public static Object get(String key) {
      return play.api.cache.Cache.get(key,play.api.Play.unsafeApplication());
  }

  /**
   * Sets a value with expiration.
   * 
   * @param expiration expiration in seconds
   */
  public static void set(String key, Object value, int expiration) {
      play.api.cache.Cache.set(key,value,expiration, play.api.Play.unsafeApplication());
  }

}

@@ -222,16 +222,39 @@
  return 
+play.libs.Scala.orNull(
 play.api
@@ -304,24 +304,25 @@
 plication())
+)
 ;%0A  %7D%0A%0A  /**

tweak play.cache.Cache