Skip to content

Commit 91a69f8

Browse files
committed
Update caching.md
1 parent eacd1b1 commit 91a69f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

structure/caching.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ The main class that provides this functionality is the [AtomCache](http://www.bi
99
It is hidden inside the StructureIO class, that we already encountered earlier.
1010

1111
<pre>
12-
Structure structure = StructureIO.getStructure("4hhb");
12+
Structure structure = StructureIO.getStructure("4hhb");
1313
</pre>
1414

1515
is the same as
1616

1717
<pre>
18-
AtomCache cache = new AtomCache();
19-
cache.getStructure("4hhb");
18+
AtomCache cache = new AtomCache();
19+
cache.getStructure("4hhb");
2020
</pre>
2121

2222

@@ -31,12 +31,12 @@ you can configure the AtomCache by setting the PDB_DIR system property
3131
-DPDB_DIR=/wherever/you/want/
3232
</pre>
3333

34-
An alternative is to hard-code the path in this way:
34+
An alternative is to hard-code the path in this way (but setting it as a property is better style)
3535

3636
<pre>
37-
AtomCache cache = new AtomCache();
37+
AtomCache cache = new AtomCache();
3838

39-
cache.setPath("/path/to/pdb/files/");
39+
cache.setPath("/path/to/pdb/files/");
4040
</pre>
4141

4242
## File Parsing Parameters

0 commit comments

Comments
 (0)