Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support off-heap store and distributed caching.
Ruby objects stored in Ehcache will be automatically marshaled to a Java byte array if the cache they are being placed in is clustered or the off-heap store is in use. On retrieval, such Ruby objects are automatically unmarshaled before being returned to the client. This enables the use of BigMemory and Terracotta clustered Ehcache.
- Loading branch information
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package net.sf.ehcache; | ||
|
||
import java.io.Serializable; | ||
|
||
public class MarshaledRubyObject implements Serializable { | ||
private byte[] bytes; | ||
|
||
public MarshaledRubyObject(byte[] bytes) { | ||
this.bytes = bytes; | ||
} | ||
|
||
public byte[] getBytes() { | ||
return this.bytes; | ||
} | ||
} |