Archive Ensembl HomeArchive Ensembl Home
Bio::EnsEMBL::Utils::SeqRegionCache Class Reference

List of all members.

Class Summary


  use Bio::EnsEMBL::DBSQL::DBAdaptor;

  $db = Bio::EnsEMBL::DBSQL::DBAdaptor-\>new(...);

  $seq_region_cache = $db-\>get_SeqRegionCache();

  $key = "$seq_region_name:$coord_system_id";

  $array = $seq_region_cache-\>{$key};

  if ($array) {
    $name   = $array-\>[1];
    $length = $array-\>[3];
  } else {
    # cache miss, get the info from the database
    # ...

    # cache the retrieved information
    $seq_region_cache-\>{$key} = [
      $seq_region_id,   $seq_region_name,
      $coord_system_id, $seq_region_length


This module is simply a convenient place to put a cache of sequence
region information which is shared by several adaptors for a given

Definition at line 40 of file

Available Methods

public new ()

Method Documentation

public Bio::EnsEMBL::Utils::SeqRegionCache::new ( )

Undocumented method

click to view

The documentation for this class was generated from the following file: